Netdev List
 help / color / mirror / Atom feed
From: Florian Fainelli <florian.fainelli@broadcom.com>
To: netdev-bot+sashiko@kernel.org
Cc: netdev@vger.kernel.org, nb@tipi-net.de, f.fainelli@gmail.com,
	bcm-kernel-feedback-list@broadcom.com, andrew@lunn.ch,
	hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net,
	edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com
Subject: Re: [PATCH net-next 2/3] net: phy: broadcom: Wire-up cable tests for BCM54210E
Date: Fri, 4 Dec 2026 15:06:14 -0800	[thread overview]
Message-ID: <767887d1-258f-4263-a4d0-ee58e6ed6271@broadcom.com> (raw)
In-Reply-To: <179634776778.3146.8896083681114965544@kernel.org>

On 12/3/26 17:29, netdev-bot+sashiko@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found more severe
> issue(s) in other patches of this series. This mail is only an FYI, in case
> you want to address the nit picks below when you respin.
> 
> Low priority / nit picks for your consideration:
> 
> - [Low] The commit message for "net: phy: broadcom: Wire-up cable tests
>    for BCM54210E" is cut off and leaves out what the patch actually…
> 
> --
> 
> net: phy: broadcom: Wire-up cable tests for BCM54210E
> 
> This commit enables cable diagnostics on the BCM54210E PHY. It sets
> PHY_POLL_CABLE_TEST and adds bcm54xx_cable_test_start() and
> bcm54xx_cable_test_get_status(). These wrappers turn off auto power-down
> while the ECD test runs and restore it afterwards.
> 
>> Wire up the cable diagnostics now that we have implemented the cable
>> test feature, this was verified with a Raspberry Pi 4B using a BCM54210E
>> PHY:
>>
>> Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
> 
> [Severity: Low]
> 
> This isn't a bug, but the commit message looks cut off. It ends with
> "using a BCM54210E PHY:" and then goes straight to the Signed-off-by. Was
> the verification output, for example the ethtool --cable-test results,
> meant to go after that colon?
> 
> The message also says the patch only wires up existing helpers. It
> actually adds two wrappers in drivers/net/phy/broadcom.c that change the
> PHY power management state during the test.
> 
> bcm54xx_cable_test_start() clears BCM54XX_SHD_APD_EN before it starts ECD:
> 
> 	/* The ECD run never finishes on a line without energy while auto
> 	 * power-down is enabled.
> 	 */
> 	val = bcm_phy_read_shadow(phydev, BCM54XX_SHD_APD);
> 	...
> 	ret = bcm_phy_write_shadow(phydev, BCM54XX_SHD_APD,
> 				   val & ~BCM54XX_SHD_APD_EN);
> 
> The SCR3 and APD shadow registers are then rewritten through
> bcm54xx_adjust_rxrefclk() in two places:
> 
>    - in bcm54xx_cable_test_start(), when bcm_phy_cable_test_start() fails
>    - in bcm54xx_cable_test_get_status(), once the test finishes
> 
> Could the commit message describe this auto power-down workaround and the
> reason for it? Right now the code comment is the only record of it.
> 
> Also, PHY_ID_MATCH_MODEL(PHY_ID_BCM54210E) masks the revision nibble. That
> means cable test is enabled for every PHY matching this model ID. This
> includes the Raspberry Pi 4B PHY, which is usually called a BCM54213PE.
> Could the message say so?

Yes absolutely, the commit message should be improved to described why 
we need to disable auto-power down as well as which specific PHYs this 
was tested on.

pw-bot: cr
-- 
Florian

  reply	other threads:[~2026-12-04 23:06 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03  0:47 [PATCH net-next 0/3] net: phy: Cable tests for BCM54210E Florian Fainelli
2026-12-03  0:48 ` [PATCH net-next 1/3] net: phy: broadcom: Implement cable test initialization Florian Fainelli
2026-12-04  1:29   ` netdev-bot+sashiko
2026-12-04 23:14     ` Florian Fainelli
2026-12-03  0:48 ` [PATCH net-next 2/3] net: phy: broadcom: Wire-up cable tests for BCM54210E Florian Fainelli
2026-12-03 12:59   ` Nicolai Buchwitz
2026-12-04  1:29   ` netdev-bot+sashiko
2026-12-04 23:06     ` Florian Fainelli [this message]
2026-12-03  0:48 ` [PATCH net-next 3/3] net: phy: broadcom: Time out a stuck cable test Florian Fainelli
2026-12-04  1:29   ` netdev-bot+sashiko
2026-12-04 23:18     ` Florian Fainelli
2026-12-03 21:20 ` [PATCH net-next 0/3] net: phy: Cable tests for BCM54210E Nicolai Buchwitz

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=767887d1-258f-4263-a4d0-ee58e6ed6271@broadcom.com \
    --to=florian.fainelli@broadcom.com \
    --cc=andrew@lunn.ch \
    --cc=bcm-kernel-feedback-list@broadcom.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=f.fainelli@gmail.com \
    --cc=hkallweit1@gmail.com \
    --cc=kuba@kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=nb@tipi-net.de \
    --cc=netdev-bot+sashiko@kernel.org \
    --cc=netdev@vger.kernel.org \
    --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