Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1738065pxb; Mon, 12 Apr 2021 05:43:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLnGhlwz8Mf26z9j1IAAxsZakTC7ler/HdxKH7CG3EZGU6pU6LPRKCtMYAxHHP9wUKW+x7 X-Received: by 2002:a17:906:578a:: with SMTP id k10mr3732239ejq.425.1618231424296; Mon, 12 Apr 2021 05:43:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618231424; cv=none; d=google.com; s=arc-20160816; b=GaiAq3IyArNwaPSHbxO6BCQam+B5+SczFK+TOzLwHw9QpY/tdkZ+KY9nJNGDaaHARu yDssU7nsZlKOrDGppLg3E7uYUjQ5noiLi1fMeAnN0vxhiWEdgqjqFvMwjI8MlgALFxs4 DYofMAcLQTFiIUwBpC8oZDxE1K+sp9fQlxF8qhHMzn/qsUSabckE1HtI0nS5Okjnge/V chcgDTdCNeYrfyaKhrxOrA/5ryY/GTtl+JZSBnv4mVUJ6zqIST74BbcmVVjs9UBXCbxY qry4CVu4BZR7DXNnJQMW08QtUkWqhpi3mFAfN04RQhIxMSOqsK1rJ+0L5CJ8/ge681mZ ghAA== 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=SmF8vP+p/3Cwx7up9lNHk1BMJVm1JLfPPJ0Qja2LGCo=; b=zRhmA4PC7WJXncdk5hE0BxMA/RtOwcsRhiVGn40Sztcqrfay9xMttrgLrnFiB3MJVK C5h/ZfRhyaXZALjdfBujItaFeJfUgiOv7z/pYRyWIUYZVTXPf/mNuEnE7T01AsKX9n18 dS7DLhDouw+Jjm6xkGzgfDZ+63Cbf+sBhx9mzU4ZtLPfIKPpPP7OVhwo6ZyJ+gko/PMp t2HJdxDKv1YGJicK+ta8ahk8N/WCiSXgztCzzNB1pFTsxy1UJsHhhgkNAqec8OQvEbUe AX3L9uWNuHNC0yMEaOGfLF19ZRFM/Wwr3UI5wybvakZ+WeovVl8069JhEBRhm3YXFrH8 vhKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Yml25Txi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h16si7846620ede.206.2021.04.12.05.43.20; Mon, 12 Apr 2021 05:43:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Yml25Txi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S241210AbhDLMlw (ORCPT + 99 others); Mon, 12 Apr 2021 08:41:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:57754 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241214AbhDLMls (ORCPT ); Mon, 12 Apr 2021 08:41:48 -0400 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=20Roh=C3=A1r?= To: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Rob Herring , =?UTF-8?q?Marek=20Beh=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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 { -- 2.20.1