From patchwork Mon Apr 12 12:39:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pali_Roh=C3=A1r?= X-Patchwork-Id: 12197931 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6060BC433B4 for ; Mon, 12 Apr 2021 12:43:01 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DD19261246 for ; Mon, 12 Apr 2021 12:43:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DD19261246 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=pViTQ8Q7s0U6iDiky/M+3z0yS84oXSL/7ghMyzxeYdE=; b=b5S5lY+6j8aWBn80I/P8gYH4PC eD4kZ6kundoy0Z3lguorhfAz88e0t5dTzy7aH0fV4vs9JAmEvoeRi1DZZhK/+w62Pc9bzZCQZmbcB rrjHUQ3pewCsdo/KauRc/nPc0i8Xtl4apihPSj0Rj7/WcL9GHL0WEahRHW3MKrgmgI//kV8DRckyY 1uBRsUOh21tpQ+TcBUmIn8KdSMNSkqklv8mI4y1sc/18HSV4CR6uOfx1Z2aCCv8IJQ6zZRcT+TAgB NZE5peArK/D/Bi7vqnEYMdspMz2hxuEjPyDOMC5x+SOa/FG5G1UTslb6JKjQshNf/Ejp7fz/de28n MQdyEPTA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lVvsm-006imY-Eo; Mon, 12 Apr 2021 12:41:37 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lVvsj-006ilx-Ou for linux-arm-kernel@desiato.infradead.org; Mon, 12 Apr 2021 12:41:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-ID:Content-Description:In-Reply-To:References; bh=SmF8vP+p/3Cwx7up9lNHk1BMJVm1JLfPPJ0Qja2LGCo=; b=BcBSH5Ar2zgIGhZaB40TDq/RlC Pt/tjCkIOElmi5JUEbwy+oAfGK7g0y87/wGNxNIfE6XtHo8shAbSLtToCr3BphWkapJF6i2j6fu93 C6l9nr/Kp6n/clgEyk5edM7U0noRYii41Ef+l7PwXWYTw3yU0gUUCDOn7kW/Srn7YWWlpBjFqhr/+ FME7+ly2mx55Ba5Z2XRpDF6v2YiDSxLvCv+GJo7j/mF6/5trbBWK00C2e9sgxRBQ28JPf9ocDxvoN ocFZPbgX0uqtki/9nXZGkPN/T4pO+hTJuLdJtyV2BaUuEs4gXjRQ7maYC7K1qYxcBF7X2Nuzd9HS3 RvHcOb1A==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lVvsh-006EC5-9i for linux-arm-kernel@lists.infradead.org; Mon, 12 Apr 2021 12:41:32 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 36F7B61027; Mon, 12 Apr 2021 12:41:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1618231290; bh=YoBNM0KK19yBjUA1qlzbhAxnoNZZQ7sS/n3u78ikZp0=; h=From:To:Cc:Subject:Date:From; b=Yml25TxioqYez+uY+20afQzLsEqRkAB4h4AN71BcxIvosxAidQlMAzXWp160/XLRX QWJvrvkQyzv7ViamRKfCecbXMBD2+pJI9m+162cTsXLvfOYn8agY4r8ElKOvr5REdT NNG+kyWNRyFVXeW2NyAyOs5KLiYVvXI44qvNZlEa/dbLzbchTd9Qzgi5+CAkJMfcio bNqHlNreAjz3ubfAsB9oCqQxuJ08jzXJhhWoX2EaEf41NijQeCbqhjk3HB+qq7QnsV InJ5cjYi/4Ef9Fisy2oluXaqF7gR5G3aypLbHL/Ts2llPjiTKGuRytiJ9o/l/54JHm Wo2w5skXiTbKA== Received: by pali.im (Postfix) id 160A7687; Mon, 12 Apr 2021 14:41:28 +0200 (CEST) From: =?utf-8?q?Pali_Roh=C3=A1r?= To: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Rob Herring , =?utf-8?q?Marek_Beh=C3=BAn?= Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: [PATCH] arm64: dts: marvell: armada-37xx: Set linux, pci-domain to zero Date: Mon, 12 Apr 2021 14:39:36 +0200 Message-Id: <20210412123936.25555-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210412_054131_390996_450B7A38 X-CRM114-Status: GOOD ( 10.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Since commit 526a76991b7b ("PCI: aardvark: Implement driver 'remove' function and allow to build it as module") PCIe controller driver for Armada 37xx can be dynamically loaded and unloaded at runtime. Also driver allows dynamic binding and unbinding of PCIe controller device. Kernel PCI subsystem assigns by default dynamically allocated PCI domain number (starting from zero) for this PCIe controller every time when device is bound. So PCI domain changes after every unbind / bind operation. Alternative way for assigning PCI domain number is to use static allocated numbers defined in Device Tree. This option has requirement that every PCI controller in system must have defined PCI bus number in Device Tree. Armada 37xx has only one PCIe controller, so assign for it PCI domain 0 in Device Tree. After this change PCI domain on Armada 37xx is always zero, even after repeated unbind and bind operations. Signed-off-by: Pali Rohár Fixes: 526a76991b7b ("PCI: aardvark: Implement driver 'remove' function and allow to build it as module") --- arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi index 7a2df148c6a3..f02058ef5364 100644 --- a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi +++ b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi @@ -495,6 +495,7 @@ <0 0 0 2 &pcie_intc 1>, <0 0 0 3 &pcie_intc 2>, <0 0 0 4 &pcie_intc 3>; + linux,pci-domain = <0>; max-link-speed = <2>; phys = <&comphy1 0>; pcie_intc: interrupt-controller {