Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4720294rwb; Mon, 31 Jul 2023 11:04:00 -0700 (PDT) X-Google-Smtp-Source: APBJJlH2PtV1t7ee35JAeHh2ITlD+NqL8MfoEM6kYVBaNnO0YFAQl//BbbLCldJR4GnPhZbi62O+ X-Received: by 2002:a17:90b:380e:b0:268:afcf:4ed0 with SMTP id mq14-20020a17090b380e00b00268afcf4ed0mr2199639pjb.16.1690826640519; Mon, 31 Jul 2023 11:04:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690826640; cv=none; d=google.com; s=arc-20160816; b=iLRXXHX6F+Eq89XQt9UlzBfx+HLXJaPxgg6ixqzzkKkazscp2FwBi/NI30VCqxnc8p /p0/4VsfVTTw6FgepmqVYIjKQo6rMxISdTa16ux/tUAy9NaHpnEolZnZiy4Up9/NdTQO D+Y0G3sM8D0WDtP1hlI0cmovsbRe9UI2WstPcMn/OYaITQSOtP2sWUwf7slLdehwN5Ds ggu/vY8vBye5umldkRksoF2VuxqkOTfGrCdhPpVApfVzK7tzn8BSYDRjEYBfLXd2tDxp WfHIjxehDMb/QDJFsNSyxSOTNBmZywECfiJbx38bMpxj714449iPgCUvSrhZLh2be3eh f3VA== 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=PrNWQ4Mwp+MlPCGeveagFaT5ZbVN6qN+DNS8MuwLg7Q=; fh=LfQCrBMaKEgbD0siDAPrEFK33OeuzJ3zXGk+5eD9ICw=; b=cFDxgyZLrn4c9BJePbmOIEz5i0+Mw4tCBOisxjRjOnddzw+qIQxqeXPEY8gBq2Burd EXEmFiByKFxMdhvt0dX3yZltkTjI6KWg58moNhzE43+qTLs2Q38fgKJasD/kCSeA1ZlN n5yQRNrgjnYSoTaJfEVWlVdBbkv0IfY3ndF46eNdP20zZbCTOERO2y+l1dNVO2ZKj8Kl QuShylHCF4kbPnUbSliispMcRNls0ayP6XPbaHbug6j2S8/mXYZHyZS9HhPe3pO4YhpJ VEsRC/Dw5uC3+GcZHycR2irEogsUuXXRRaCKqa8hh1CM6oBDp/eBaTR0tSOz+ONMGMJs 8E8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Cq4AIz0N; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h2-20020a170902748200b001b9eb349550si7655546pll.391.2023.07.31.11.03.48; Mon, 31 Jul 2023 11:04:00 -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=Cq4AIz0N; 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 S233663AbjGaQ5h (ORCPT + 99 others); Mon, 31 Jul 2023 12:57:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233599AbjGaQ5a (ORCPT ); Mon, 31 Jul 2023 12:57:30 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7C031735; Mon, 31 Jul 2023 09:57:28 -0700 (PDT) Received: from jupiter.universe (dyndsl-091-248-210-008.ewe-ip-backbone.de [91.248.210.8]) (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 2AEFA660710D; Mon, 31 Jul 2023 17:57:27 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1690822647; bh=P9l17piVJUVOMtrFDWF3XbJJjzW9YfC02cUrfUQr3Dw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Cq4AIz0NCArSne8qWA437xRyJwNao1oyJKvMT2bmmMbJ4iIwZxwb+VqviLOVntxA1 utncYdgkMoaPPJZXTiJ/GBP/OIoBipVdwfTmM5F+P/Gy1imdPHSmtiQW/AH5FPdvKJ 4RipzABmbg3wFy9kImOZN0FRmSIXov1SPQ7k+5R4145i258RlXj204487wUikY9spS CPMpAP19BR48pETqGh4Gz1LGc2aB+tTFtPpB3NjJBHzYtvA6VZqy/0aKhL3XK0OUEL jsWYA+hQqJxPU3efncwYHdSFqaL7F3vI4zJ8NNRc+Sf2iWaSqmoaUZRg0RTXc2JUyw 9q0z9aiH/VxdQ== Received: by jupiter.universe (Postfix, from userid 1000) id 28DFA4800A2; Mon, 31 Jul 2023 18:57:25 +0200 (CEST) From: Sebastian Reichel To: linux-pci@vger.kernel.org, linux-rockchip@lists.infradead.org, Serge Semin Cc: Jingoo Han , Gustavo Pimentel , Bjorn Helgaas , Lorenzo Pieralisi , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Shawn Lin , Simon Xue , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sebastian Reichel , kernel@collabora.com Subject: [PATCH v4 1/5] dt-bindings: PCI: dwc: improve msi handling Date: Mon, 31 Jul 2023 18:57:19 +0200 Message-Id: <20230731165723.53069-2-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230731165723.53069-1-sebastian.reichel@collabora.com> References: <20230731165723.53069-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,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: X-Mailing-List: linux-kernel@vger.kernel.org Allow missing "msi" interrupt, iff the node has a "msi-map" property. Signed-off-by: Sebastian Reichel --- .../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..d2b4fb8f6dcd 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 -- 2.40.1