Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Rafał Miłecki" <zajec5@gmail.com>
Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, robh@kernel.org
Subject: Re: [PATCH V2 RFC 2/2] ARM: dts: BCM5301X: change Luxul XWR-3150 CPU port from 5 do 8
Date: Tue, 11 Aug 2026 19:46:56 +0000	[thread overview]
Message-ID: <20260811194658.981A11F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260811193658.14304-2-zajec5@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] The patch assigns the exact same MAC address nvmem cell to both `gmac0` and `gmac2`, while leaving `gmac0` enabled, causing a ghost interface and MAC address collision.
--

--- Patch [2]: [PATCH V2 RFC 2/2] ARM: dts: BCM5301X: change Luxul XWR-3150 CPU port from 5 do 8 ---
commit 0c244661a37f1cbd846bc54d786e2d6320794031
Author: Rafał Miłecki <rafal@milecki.pl>
ARM: dts: BCM5301X: change Luxul XWR-3150 CPU port from 5 do 8

This commit changes the CPU port for the Luxul XWR-3150 from port 5 to port 8
to utilize full switch functionality. It assigns the MAC address originally
intended for the first Ethernet interface to the third Ethernet interface and
updates the switch port statuses accordingly.

> diff --git a/arch/arm/boot/dts/broadcom/bcm47094-luxul-xwr-3150-v1.dts b/arch/arm/boot/dts/broadcom/bcm47094-luxul-xwr-3150-v1.dts
> index 8e487f60a2cca..7969f0f331b56 100644
> --- a/arch/arm/boot/dts/broadcom/bcm47094-luxul-xwr-3150-v1.dts
> +++ b/arch/arm/boot/dts/broadcom/bcm47094-luxul-xwr-3150-v1.dts
> @@ -81,6 +81,11 @@ &gmac0 {
>  	nvmem-cell-names = "mac-address";
>  };
>  
> +&gmac2 {
> +	nvmem-cells = <&et0macaddr 0>;
> +	nvmem-cell-names = "mac-address";
> +};
> +

[Severity: High]
Since gmac0 is not marked as disabled and uses the exact same MAC address cell
(&et0macaddr 0), won't the bgmac Ethernet driver probe both gmac0 and gmac2
and register two distinct network interfaces with the same MAC address?

Because gmac0 retains its fixed-link property but switch port 5 is now
disabled, does this leave a ghost interface that is reported as UP but
disconnected from the switch, potentially blackholing traffic?

[ ... ]

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

  reply	other threads:[~2026-08-11 19:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-11 19:36 [PATCH V2 net 1/2] b53: deal with Northstar devices using CPU port 5 or 7 Rafał Miłecki
2026-08-11 19:36 ` [PATCH V2 RFC 2/2] ARM: dts: BCM5301X: change Luxul XWR-3150 CPU port from 5 do 8 Rafał Miłecki
2026-08-11 19:46   ` sashiko-bot [this message]
2026-08-11 20:33   ` Andrew Lunn
2026-08-11 21:46   ` Vladimir Oltean
2026-08-11 21:52 ` [PATCH V2 net 1/2] b53: deal with Northstar devices using CPU port 5 or 7 Vladimir Oltean

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=20260811194658.981A11F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=zajec5@gmail.com \
    /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