From: Jianfeng Liu <Jianfeng.Liu@cixtech.com>
To: cix-kernel-upstream@cixtech.com
Cc: Jianfeng Liu <Jianfeng.Liu@cixtech.com>,
"Fugang.duan" <fugang.duan@cixtech.com>,
Conor Dooley <conor+dt@kernel.org>,
Gary Yang <gary.yang@cixtech.com>,
Hans Zhang <hans.zhang@cixtech.com>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Manivannan Sadhasivam <mani@kernel.org>,
Peter Chen <peter.chen@cixtech.com>,
Rob Herring <robh@kernel.org>,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: [PATCH] arm64: dts: cix: sky1: fix RCSU strap/status reg of pcie_x2_rc node
Date: Tue, 22 Sep 2026 11:34:28 +0800 [thread overview]
Message-ID: <20260922033448.1094694-1-Jianfeng.Liu@cixtech.com> (raw)
The "rcsu_strap" and "rcsu_status" reg entries of the pcie_x2_rc node
contain a spurious "0", yielding 9-digit addresses 0x0a0600340 and
0x0a0600440 instead of 0x0a060340 and 0x0a060440.
The other Sky1 PCIe controllers use a 0x20 stride within the 0x0a060000
RCSU block:
pcie_x8_rc: 0x0a060300 / 0x0a060400
pcie_x2_rc: 0x0a060340 / 0x0a060440 (fixed)
pcie_x1_0_rc: 0x0a060360 / 0x0a060460
pcie_x1_1_rc: 0x0a060380 / 0x0a060480
With the typo the driver reads the strap/status registers 0x1000 bytes
off, landing in the neighbouring controller's RCSU bank. Fix the
addresses so the correct registers are accessed.
Fixes: 0b014cd8f15e ("arm64: dts: cix: Add PCIe Root Complex on sky1")
Signed-off-by: Jianfeng Liu <Jianfeng.Liu@cixtech.com>
Reviewed-by: Fugang.duan <fugang.duan@cixtech.com>
---
arch/arm64/boot/dts/cix/sky1.dtsi | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm64/boot/dts/cix/sky1.dtsi b/arch/arm64/boot/dts/cix/sky1.dtsi
index 0a820f45feb9..d64cd935970e 100644
--- a/arch/arm64/boot/dts/cix/sky1.dtsi
+++ b/arch/arm64/boot/dts/cix/sky1.dtsi
@@ -661,8 +661,8 @@ pcie_x2_rc: pcie@a0c0000 {
compatible = "cix,sky1-pcie-host";
reg = <0x00 0x0a0c0000 0x00 0x10000>,
<0x00 0x26000000 0x00 0x3000000>,
- <0x00 0x0a0600340 0x00 0x20>,
- <0x00 0x0a0600440 0x00 0x20>,
+ <0x00 0x0a060340 0x00 0x20>,
+ <0x00 0x0a060440 0x00 0x20>,
<0x00 0x40000000 0x00 0x00100000>;
reg-names = "reg", "cfg", "rcsu_strap", "rcsu_status", "msg";
ranges = <0x01000000 0x0 0x40100000 0x0 0x40100000 0x0 0x00100000>,
---
base-commit: fd73f4a6659897191fa0d40695fe370925dd3780
branch: fix-mainline-pcie-x2
--
2.55.0
reply other threads:[~2026-09-22 3:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260922033448.1094694-1-Jianfeng.Liu@cixtech.com \
--to=jianfeng.liu@cixtech.com \
--cc=cix-kernel-upstream@cixtech.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=fugang.duan@cixtech.com \
--cc=gary.yang@cixtech.com \
--cc=hans.zhang@cixtech.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mani@kernel.org \
--cc=peter.chen@cixtech.com \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox