Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp5322162rwb; Wed, 17 Aug 2022 15:36:32 -0700 (PDT) X-Google-Smtp-Source: AA6agR4KFuYEEQNHDl01JkIHo4FeQzGkPNEBFmbcVnUn7t7+iIYh/vcjny8XCr73GsN0BG/GjPUC X-Received: by 2002:a17:906:58c8:b0:6fe:91d5:18d2 with SMTP id e8-20020a17090658c800b006fe91d518d2mr115520ejs.190.1660775791996; Wed, 17 Aug 2022 15:36:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660775791; cv=none; d=google.com; s=arc-20160816; b=XAVGwTd2f2xXEuI6IiorzHMpcZ5/R/VBM0r1nBd01fX/IuFBCCjYSNaDAh5UX35TAu 5AKVC+H1BNteHuAtofCGqaUzlyr38I2gK5BZuaLhw62B7lwRsK5ljBFJvnRqZ1WFn7fG 3vTTxfXXYwbOZ11Y9xZAIxWTpBWswOwIiHz3CTJoAK7bkv4d/RTFuVVCPiwWZlcp9N44 w3d0kxpvZmv2mYbE5T9BEVXa9FZbWtI/jfE1u2ylPOxIlb8WkPg8JTxO/UdtVbQ7Nxew qceY1iE64x3D/J50iXS1Enszct0xI/e972HrgX02VNf3CjcOFHiJX8IrJ7lAnLvRDU53 AcDA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=sgDiJumqvQ/D3MBuWqjPWSFYqB/53UvKLznQQ7nFa74=; b=Xn+xyJy2QBpS2QfFHRGlJIw8Ug+Ki/QekirkG4lTSkAWhtUwms7y+YstmbjuTNSIzF DkDaZk/9EDOP3x/dRIhdLjUjLHx94Q1eIUH7kqs+gHSJwK/qBnXBX9lOA4bK0sJEM8i+ yGDXUShjyKKJBfPNRqI/MQw7Qim1OGW7QApe2oCS+Jr1fN+pppLEWV/1yFxSVX6f6M/G 0POUB0jy3WzgkxeqFBnkFZYh9WeTBCfrxHfjLTKwaInUseBsHZpjSZudcXmUecsLOOcg daPKHYjIWQGTVbqkqJTdHHe1tfknwaJ9APRhE1q/N3vV57XHq9MpTrUldrR7poQN7ehU RscQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZV3FC5WH; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x19-20020a1709064bd300b0073abf0d6e2esi1239894ejv.435.2022.08.17.15.36.05; Wed, 17 Aug 2022 15:36:31 -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=@kernel.org header.s=k20201202 header.b=ZV3FC5WH; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242301AbiHQWb2 (ORCPT + 99 others); Wed, 17 Aug 2022 18:31:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241783AbiHQWbY (ORCPT ); Wed, 17 Aug 2022 18:31:24 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0AF2A262C; Wed, 17 Aug 2022 15:31:23 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 80D3AB81F60; Wed, 17 Aug 2022 22:31:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 18C9DC433D6; Wed, 17 Aug 2022 22:31:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660775481; bh=nryGnFZEUd3dfpXHPuSwf2Mu1tM2xpxmFFLQP+/wNsA=; h=From:To:Cc:Subject:Date:From; b=ZV3FC5WHldtdiockLPE3TIpjeTtSFPuLzZ/VEImqMvVNMNWqEfXYAbDIM/xN+rCaL onNc+OZYQRYHIIYYjDnpbFsgvrYBXUhfO11XI4MimxAfvnZY5V7gO9cF0IIB77JtB3 niE7tpP0ghfF3YJEz1YPyRkvxCyH66tZCH5eyNwTEHZRWIM/fjlHa0itRGlS+m7wR6 G3SA57Di42t6N/IWu36T1Al00LBckOdEivaDtmIYRBTjuKhB5X+f4Bx3Pe4xhc4VWd KcgxnHBbQvmt7MGkQ9Hew69uNLNzVTcMj5Vmh4Mql0azOcPNxudWEnLivdfbKOyZ20 pWjQn0OEXeFsg== Received: by pali.im (Postfix) id EB83777A; Thu, 18 Aug 2022 00:31:17 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Rob Herring Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Marek=20Beh=C3=BAn?= Subject: [PATCH 0/6] ARM: dts: pci-mvebu: Fix assigned-addresses for every PCIe Root Port Date: Thu, 18 Aug 2022 00:30:47 +0200 Message-Id: <20220817223053.31141-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Per IEEE Std 1275-1994 bindings documentation (to which kernel DT bindings refers), DT property assigned-addresses contains BDF address of resource. Currently more PCIe Root Port nodes have BDF address in assigned-addresses which points to different PCIe Root Port nodes. This obviously does not make sense as the address resource specified in assigned-addresses of every PCIe Root Port describes address range of internal registers which are specific for corresponding Marvell PCIe Root Port. Fix this issue and align all BDF addresses in assigned-addresses DT property to specify correct BDF address of the current PCIe Root Port. Note that current version of pci-mvebu.c controller driver, which registers Marvell PCIe Root Ports, ignores BDF value in DT property assigned-addresses. It expects that Root Port's assigned-addresses contains address range of that root port. That is why driver currently works without any issue and nobody spotted it. But if driver or something else would do device tree validation then this issue should be spotted and throws error. Also device tree files may be used by other projects where drivers may require correct values. This patch series aligns BDF address of every Marvell PCIe Root Port in node name, config space in reg property and mem in assigned-address property of internal registers resource. Pali Rohár (6): ARM: dts: dove: Fix assigned-addresses for every PCIe Root Port ARM: dts: armada-370: Fix assigned-addresses for every PCIe Root Port ARM: dts: armada-xp: Fix assigned-addresses for every PCIe Root Port ARM: dts: armada-375: Fix assigned-addresses for every PCIe Root Port ARM: dts: armada-38x: Fix assigned-addresses for every PCIe Root Port ARM: dts: armada-39x: Fix assigned-addresses for every PCIe Root Port arch/arm/boot/dts/armada-370.dtsi | 2 +- arch/arm/boot/dts/armada-375.dtsi | 2 +- arch/arm/boot/dts/armada-380.dtsi | 4 ++-- arch/arm/boot/dts/armada-385.dtsi | 6 +++--- arch/arm/boot/dts/armada-39x.dtsi | 6 +++--- arch/arm/boot/dts/armada-xp-mv78230.dtsi | 8 ++++---- arch/arm/boot/dts/armada-xp-mv78260.dtsi | 16 ++++++++-------- arch/arm/boot/dts/dove.dtsi | 2 +- 8 files changed, 23 insertions(+), 23 deletions(-) -- 2.20.1