From: "Imre Kaloz" <kaloz@kernel.org>
To: netdev-bot+sashiko@kernel.org
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"David S . Miller" <davem@davemloft.net>,
"Eric Dumazet" <edumazet@kernel.org>,
"Jakub Kicinski" <kuba@kernel.org>,
"Paolo Abeni" <pabeni@redhat.com>,
"Andrew Lunn" <andrew+netdev@lunn.ch>,
"Elad Nachman" <enachman@marvell.com>,
"Oleksandr Mazur" <oleksandr.mazur@plvision.eu>
Subject: Re: [PATCH net] net: marvell: prestera: disable port before changing its MAC mode
Date: Sun, 15 Nov 2026 16:50:13 +0100 [thread overview]
Message-ID: <e53f74da-5847-4b4d-9168-31ba42569830@app.fastmail.com> (raw)
In-Reply-To: <179474035815.2199510.3439417604844193452@kernel.org>
On Sun, Nov 15, 2026, at 11:59, netdev-bot+sashiko@kernel.org wrote:
<snip>
>> @@ -339,6 +340,17 @@ static int prestera_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode,
>> break;
>> }
>>
>> + /* Firmware may not report link up after the mode or inband setting of
>> + * an enabled port changes until the port is disabled and re-enabled.
>> + */
>> + if (old.admin && (old.mode != cfg_mac.mode ||
>> + old.inband != cfg_mac.inband)) {
>
> [Severity: Medium]
> Does this check catch a change between 2500BASE-X and SGMII?
No. Both use PRESTERA_MAC_MODE_SGMII and phylink selects inband for
both, so swapping a 2.5G module for an SGMII one on an enabled port
skips the disable. v2 will also compare the speed and set SPEED_1000
for SGMII, which is the speed the port already runs with on the SGMII
path I tested. I have no 2.5G module, so the 2500BASE-X case is
untested.
Imre
pw-bot: cr
prev parent reply other threads:[~2026-11-15 15:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-11 10:15 [PATCH net] net: marvell: prestera: disable port before changing its MAC mode Imre Kaloz
2026-11-11 10:20 ` netdev-bot+sinfo
[not found] ` <BL1PPFB0715B38BE2E57548F95CCBDFCAF7DB712@BL1PPFB0715B38B.namprd18.prod.outlook.com>
2026-11-11 16:42 ` [EXTERNAL] " Imre Kaloz
[not found] ` <PH3PPFA2D0C836CFB7D296376875E16ECC8DB702@PH3PPFA2D0C836C.namprd18.prod.outlook.com>
2026-11-12 18:50 ` Imre Kaloz
[not found] ` <BL1PPFB0715B38BF7C2E60F8CA62C66A205DB7D2@BL1PPFB0715B38B.namprd18.prod.outlook.com>
2026-11-15 15:41 ` Imre Kaloz
2026-11-15 10:59 ` netdev-bot+sashiko
2026-11-15 15:50 ` Imre Kaloz [this message]
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=e53f74da-5847-4b4d-9168-31ba42569830@app.fastmail.com \
--to=kaloz@kernel.org \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=enachman@marvell.com \
--cc=kuba@kernel.org \
--cc=netdev-bot+sashiko@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=oleksandr.mazur@plvision.eu \
--cc=pabeni@redhat.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