From: sashiko-bot@kernel.org
To: "Ioana Ciornei" <ioana.ciornei@nxp.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 2/5] arm64: dts: ls1028a: describe the Lynx 10G SerDes
Date: Tue, 30 Jun 2026 11:32:28 +0000 [thread overview]
Message-ID: <20260630113229.66DAD1F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260630110459.516364-3-ioana.ciornei@nxp.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] The `reg` property for the `serdes` node incorrectly sets the region size to `0xffff` instead of `0x10000`, causing an off-by-one error in the resource length.
--
commit a39aeb25ec050b4deb66ed84479cc1400f6ce47b
Author: Vladimir Oltean <vladimir.oltean@nxp.com>
arm64: dts: ls1028a: describe the Lynx 10G SerDes
This commit describes the Lynx 10G SerDes block and its 4 SerDes lanes found
on the LS1028A SoC. The node is left disabled at the SoC level so board
device trees can enable it once consumer nodes use it.
> diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi
> --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi
> +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi
[ ... ]
> @@ -250,6 +250,35 @@ ls1028a_uid: unique-id@1c {
> };
> };
>
> + serdes: phy@1ea0000 {
> + compatible = "fsl,ls1028a-serdes";
> + reg = <0x00 0x1ea0000 0x0 0xffff>;
[Severity: Low]
Does this reg property specify a length that is off by one byte?
The reg property size field represents the length of the region in bytes. If
this is a standard 64KB hardware block, should the size be 0x10000 instead
of 0xffff?
Setting the length to 0xffff tracks a memory region that is 1 byte smaller
than the actual block. While ioremap aligns to the page boundary and avoids
runtime side effects, this tracks an incorrect resource length and leaves the
very last byte unmapped by the resource manager.
> + #address-cells = <1>;
> + #size-cells = <0>;
> + #phy-cells = <1>;
[ ... ]
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260630110459.516364-1-ioana.ciornei@nxp.com?part=2
next prev parent reply other threads:[~2026-06-30 11:32 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-30 11:04 [PATCH 0/5] arm64: dts: describe the Lynx 10G and 28G SerDes blocks for Layerscape SoCs Ioana Ciornei
2026-06-30 11:04 ` [PATCH 1/5] arm64: dts: lx2160a: transition to device-specific SerDes compatible strings Ioana Ciornei
2026-06-30 11:26 ` sashiko-bot
2026-06-30 12:01 ` Ioana Ciornei
2026-06-30 11:04 ` [PATCH 2/5] arm64: dts: ls1028a: describe the Lynx 10G SerDes Ioana Ciornei
2026-06-30 11:32 ` sashiko-bot [this message]
2026-06-30 12:22 ` Ioana Ciornei
2026-06-30 11:04 ` [PATCH 3/5] arm64: dts: ls1046a: describe the Lynx 10G SerDes blocks Ioana Ciornei
2026-06-30 11:43 ` sashiko-bot
2026-06-30 11:04 ` [PATCH 4/5] arm64: dts: ls208xa: " Ioana Ciornei
2026-06-30 11:48 ` sashiko-bot
2026-06-30 11:04 ` [PATCH 5/5] arm64: dts: ls1088a: " Ioana Ciornei
2026-06-30 20:20 ` [PATCH 0/5] arm64: dts: describe the Lynx 10G and 28G SerDes blocks for Layerscape SoCs Frank Li
2026-07-01 7:42 ` Ioana Ciornei
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=20260630113229.66DAD1F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=ioana.ciornei@nxp.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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