All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Christian Marangi" <ansuelsmth@gmail.com>
Cc: linux-phy@lists.infradead.org, vkoul@kernel.org,
	olteanv@gmail.com, conor+dt@kernel.org,
	devicetree@vger.kernel.org, robh@kernel.org,
	neil.armstrong@linaro.org
Subject: Re: [PATCH v2 1/2] dt-bindings: phy: airoha: Document support for AN7583 Gen3 PCIe PHY
Date: Thu, 27 Aug 2026 12:27:49 +0000	[thread overview]
Message-ID: <20260827122749.85E951F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260827122127.18874-2-ansuelsmth@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] Incorrect memory region size in the device tree example (0xfff instead of 0x1000).
--

commit 41aa642fd5dfb10ea2b50d62af99f95cc040fb55
Author: Christian Marangi <ansuelsmth@gmail.com>

dt-bindings: phy: airoha: Document support for AN7583 Gen3 PCIe PHY

Document support for AN7583 PCIe PHY used to make the Gen3 PCIe port
work. Add the required register to configure the PCIe PHY and provide an
example for it.

> diff --git a/Documentation/devicetree/bindings/phy/airoha,an7583-pcie-gen3-phy.yaml b/Documentation/devicetree/bindings/phy/airoha,an7583-pcie-gen3-phy.yaml
> new file mode 100644
> index 0000000000000..07bb20152c0a7
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/phy/airoha,an7583-pcie-gen3-phy.yaml

[ ... ]

> +examples:
> +  - |
> +    #include <dt-bindings/phy/phy.h>
> +
> +    phy@1fc7f000 {
> +        compatible = "airoha,an7583-pcie-gen3-phy";
> +        reg = <0x1fc7f000 0xfff>,
> +              <0x1fc7e000 0xfff>,

[Severity: Low]
Are these memory region sizes off-by-one?

Since the base addresses (0x1fc7e000 and 0x1fc7f000) are exactly 4KB (0x1000)
apart, a size of 0xfff (4095 bytes) mathematically leaves the last byte of the
4KB block unmapped.

While ioremap rounds up to the page size meaning there is likely no functional
failure in practice, should this specify 0x1000 instead to prevent propagating
off-by-one size errors to consumers of this example?

> +              <0x1fc30044 0x4>,
> +              <0x1fc35030 0x4>;
> +        reg-names = "g3-ana", "g3-pma",
> +                    "xr-dtime", "rx-aeq";
> +
> +        phys = <&pcie1_phy PHY_TYPE_PCIE>;
> +
> +        #phy-cells = <0>;
> +    };

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260827122127.18874-1-ansuelsmth@gmail.com?part=1

WARNING: multiple messages have this Message-ID (diff)
From: sashiko-bot@kernel.org
To: "Christian Marangi" <ansuelsmth@gmail.com>
Cc: linux-phy@lists.infradead.org, vkoul@kernel.org,
	olteanv@gmail.com, conor+dt@kernel.org,
	devicetree@vger.kernel.org, robh@kernel.org,
	neil.armstrong@linaro.org
Subject: Re: [PATCH v2 1/2] dt-bindings: phy: airoha: Document support for AN7583 Gen3 PCIe PHY
Date: Thu, 27 Aug 2026 12:27:49 +0000	[thread overview]
Message-ID: <20260827122749.85E951F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260827122127.18874-2-ansuelsmth@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] Incorrect memory region size in the device tree example (0xfff instead of 0x1000).
--

commit 41aa642fd5dfb10ea2b50d62af99f95cc040fb55
Author: Christian Marangi <ansuelsmth@gmail.com>

dt-bindings: phy: airoha: Document support for AN7583 Gen3 PCIe PHY

Document support for AN7583 PCIe PHY used to make the Gen3 PCIe port
work. Add the required register to configure the PCIe PHY and provide an
example for it.

> diff --git a/Documentation/devicetree/bindings/phy/airoha,an7583-pcie-gen3-phy.yaml b/Documentation/devicetree/bindings/phy/airoha,an7583-pcie-gen3-phy.yaml
> new file mode 100644
> index 0000000000000..07bb20152c0a7
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/phy/airoha,an7583-pcie-gen3-phy.yaml

[ ... ]

> +examples:
> +  - |
> +    #include <dt-bindings/phy/phy.h>
> +
> +    phy@1fc7f000 {
> +        compatible = "airoha,an7583-pcie-gen3-phy";
> +        reg = <0x1fc7f000 0xfff>,
> +              <0x1fc7e000 0xfff>,

[Severity: Low]
Are these memory region sizes off-by-one?

Since the base addresses (0x1fc7e000 and 0x1fc7f000) are exactly 4KB (0x1000)
apart, a size of 0xfff (4095 bytes) mathematically leaves the last byte of the
4KB block unmapped.

While ioremap rounds up to the page size meaning there is likely no functional
failure in practice, should this specify 0x1000 instead to prevent propagating
off-by-one size errors to consumers of this example?

> +              <0x1fc30044 0x4>,
> +              <0x1fc35030 0x4>;
> +        reg-names = "g3-ana", "g3-pma",
> +                    "xr-dtime", "rx-aeq";
> +
> +        phys = <&pcie1_phy PHY_TYPE_PCIE>;
> +
> +        #phy-cells = <0>;
> +    };

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260827122127.18874-1-ansuelsmth@gmail.com?part=1

-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

  reply	other threads:[~2026-08-27 12:27 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-27 12:21 [PATCH v2 0/2] phy: airoha: add support for AN7583 PCIe PHY driver Christian Marangi
2026-08-27 12:21 ` Christian Marangi
2026-08-27 12:21 ` [PATCH v2 1/2] dt-bindings: phy: airoha: Document support for AN7583 Gen3 PCIe PHY Christian Marangi
2026-08-27 12:21   ` Christian Marangi
2026-08-27 12:27   ` sashiko-bot [this message]
2026-08-27 12:27     ` sashiko-bot
2026-08-31  6:51   ` Krzysztof Kozlowski
2026-08-31  6:51     ` Krzysztof Kozlowski
2026-09-01 13:11     ` Christian Marangi
2026-09-01 13:11       ` Christian Marangi
2026-09-03  9:40       ` Krzysztof Kozlowski
2026-09-03  9:40         ` Krzysztof Kozlowski
2026-08-27 12:21 ` [PATCH v2 2/2] phy: airoha: add support for AN7583 Gen3 PCIe PHY driver Christian Marangi
2026-08-27 12:21   ` Christian Marangi
2026-08-27 12:29   ` sashiko-bot
2026-08-27 12:29     ` sashiko-bot

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=20260827122749.85E951F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=ansuelsmth@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-phy@lists.infradead.org \
    --cc=neil.armstrong@linaro.org \
    --cc=olteanv@gmail.com \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=vkoul@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.