Message ID | 20230717172651.64324-2-sebastian.reichel@collabora.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp1250762vqt; Mon, 17 Jul 2023 10:35:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlEFa7r1+Dw/xik5fywta7aioK17NcgJNikuC7d1gXe0OXPXLsuvGyiwwU+Xun7cRpcXnrge X-Received: by 2002:a05:6402:1859:b0:51e:2664:f695 with SMTP id v25-20020a056402185900b0051e2664f695mr12774138edy.23.1689615334083; Mon, 17 Jul 2023 10:35:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689615334; cv=none; d=google.com; s=arc-20160816; b=AOmxtGY3HQ+oPCywYdUFqDdRFLJYuuyUH3qwHUlaPzDeyAJm7kkWiXlGPzyWOqGzTN CSF0k645YDWFWgzVouXF1eCukHhVyAVPnKA5IPNKqrXOqumMQLCptuTY/3/9QN4RCkNP t04/47gx2c90erRhcH2gv5TSOocwm/B4CpQYc3VsZ3sizxSnvHmXUb4NK0F5LdKpmft6 zL83U54mP9AJZ5nygd3ogH663tj+EOwr178YCx/5oi+kd5Cj55Qddecj/PNkFomaausc 3fEVrHTtrjQUQhZPDoa4eLeQKmbMjx/+1G+YYvqgSSM+dF9uP3A/E4qipnFBWeHwcsKi A2nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6VTnPH+662qXyottJQj7WkK8TH5GlV5TORVLs5Rb0lU=; fh=LfQCrBMaKEgbD0siDAPrEFK33OeuzJ3zXGk+5eD9ICw=; b=UZugJjkRPm4mcm8JyKiPEPoLdbHYCH7udG8kaYnq8IMjEovwEXzzsXF9IqzYEqE87G 1VfMaJWU4k2Mot5hOwqW95rWGAgKFrtAFiyQXM1RcerHokqNfL8Wt5ZsDJ4nlKJQTFCt NGOSvQE8i+mqkMXnHB7YH9f/l4P5DfNidI7pHC0YnhwEytUbZ0uODXfAL1uDkL2gdm1X zzPVMX/2Oy69wg6xpKLLmh7GMeGsm5p24aTPXg6I28otImBXgK/qFfO4lyuP5Z8hRbkg 539ZjbaqJhZ4lTGBqQKr5QGhxspEp2Vb0UGmoqHMemOUIu/5ANAZYuYCiS2ZmYobu/e8 Ln8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=gBd2jq4J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l14-20020a056402124e00b0051e0fa08e8csi14056752edw.284.2023.07.17.10.35.10; Mon, 17 Jul 2023 10:35:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=gBd2jq4J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231201AbjGQR1W (ORCPT <rfc822;hadasmailinglist@gmail.com> + 99 others); Mon, 17 Jul 2023 13:27:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230019AbjGQR1D (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 17 Jul 2023 13:27:03 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C42DBD; Mon, 17 Jul 2023 10:26:57 -0700 (PDT) Received: from jupiter.universe (dyndsl-091-248-189-171.ewe-ip-backbone.de [91.248.189.171]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id C95EC66028F5; Mon, 17 Jul 2023 18:26:55 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1689614815; bh=E9QpBFx3OjWlRLEoFnsSGJDKU0c7IinxD+9ybLulYfM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gBd2jq4JHb9CE+ya1XOhEhR8MKtURZmk5lB5peFJDBeh0wOKk17+kgS9Nm7+Hhgcu qOh5mOdHVwJqaRFRLPSb2mtpgUa+weZKMTIfWhfBBUMJL1KX4zqgXU+i8nqP4Ys4ZA YqZ6FfDfHgAG8X+lXT+iuq+YzVtnzqGIfVVtZur9+umaXpmzUAAMSJ0oVdd/n7vcnn mlCT5fMjyhVTy91uj1/5o/yi1XBcgko8OTZSzbQSWmaBNERCxbnaTt6Ea5+4Xhrsvb QP69NWwHMMo1j1VpSErayFf4O6ZrLxo9WHyDL2CyiGpkf1/nBS++clnJnMr8ehOU7a b7jOZmADZrYiw== Received: by jupiter.universe (Postfix, from userid 1000) id 19AC7480C77; Mon, 17 Jul 2023 19:26:53 +0200 (CEST) From: Sebastian Reichel <sebastian.reichel@collabora.com> To: linux-pci@vger.kernel.org, linux-rockchip@lists.infradead.org, Serge Semin <fancer.lancer@gmail.com> Cc: Jingoo Han <jingoohan1@gmail.com>, Gustavo Pimentel <gustavo.pimentel@synopsys.com>, Bjorn Helgaas <bhelgaas@google.com>, Lorenzo Pieralisi <lpieralisi@kernel.org>, =?utf-8?q?Krzysztof_Wilczy=C5=84?= =?utf-8?q?ski?= <kw@linux.com>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Heiko Stuebner <heiko@sntech.de>, Shawn Lin <shawn.lin@rock-chips.com>, Simon Xue <xxm@rock-chips.com>, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sebastian Reichel <sebastian.reichel@collabora.com>, kernel@collabora.com Subject: [PATCH v3 1/5] dt-bindings: PCI: dwc: improve msi handling Date: Mon, 17 Jul 2023 19:26:47 +0200 Message-Id: <20230717172651.64324-2-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230717172651.64324-1-sebastian.reichel@collabora.com> References: <20230717172651.64324-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771690088421357727 X-GMAIL-MSGID: 1771690088421357727 |
Series |
RK3588 PCIe2 support
|
|
Commit Message
Sebastian Reichel
July 17, 2023, 5:26 p.m. UTC
Allow missing "msi" interrupt, iff the node has a "msi-map" property.
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
---
.../devicetree/bindings/pci/snps,dw-pcie.yaml | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
Comments
On Mon, Jul 17, 2023 at 07:26:47PM +0200, Sebastian Reichel wrote: > Allow missing "msi" interrupt, iff the node has a "msi-map" property. > > Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com> > --- > .../devicetree/bindings/pci/snps,dw-pcie.yaml | 12 +++++++++--- > 1 file changed, 9 insertions(+), 3 deletions(-) > > diff --git a/Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml b/Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml > index 1a83f0f65f19..abc1bcef13ec 100644 > --- a/Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml > +++ b/Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml > @@ -25,6 +25,15 @@ select: > allOf: > - $ref: /schemas/pci/pci-bus.yaml# > - $ref: /schemas/pci/snps,dw-pcie-common.yaml# > + - if: > + not: > + required: > + - msi-map > + then: > + properties: > + interrupt-names: > + contains: > + const: "msi" Don't need quotes. > > properties: > reg: > @@ -193,9 +202,6 @@ properties: > oneOf: > - description: See native "app" IRQ for details > enum: [ intr ] > - allOf: > - - contains: > - const: msi > > additionalProperties: true > > -- > 2.40.1 >
diff --git a/Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml b/Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml index 1a83f0f65f19..abc1bcef13ec 100644 --- a/Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml +++ b/Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml @@ -25,6 +25,15 @@ select: allOf: - $ref: /schemas/pci/pci-bus.yaml# - $ref: /schemas/pci/snps,dw-pcie-common.yaml# + - if: + not: + required: + - msi-map + then: + properties: + interrupt-names: + contains: + const: "msi" properties: reg: @@ -193,9 +202,6 @@ properties: oneOf: - description: See native "app" IRQ for details enum: [ intr ] - allOf: - - contains: - const: msi additionalProperties: true