* [v4,net] net: phy: broadcom: Correct BCM5221 PHY model detection
@ 2025-03-27 6:29 Jim Liu
2025-03-27 13:37 ` Florian Fainelli
2025-03-31 12:50 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Jim Liu @ 2025-03-27 6:29 UTC (permalink / raw)
To: JJLIU0, jim.t90615, florian.fainelli, andrew, hkallweit1, kuba,
linux, edumazet, pabeni
Cc: netdev, giulio.benetti+tekvox, bcm-kernel-feedback-list,
linux-kernel, Michal Swiatkowski
Correct detect condition is applied to the entire 5221 family of PHYs.
Fixes: 3abbd0699b67 ("net: phy: broadcom: add support for BCM5221 phy")
Signed-off-by: Jim Liu <jim.t90615@gmail.com>
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
---
v4:
modify detect condition
---
drivers/net/phy/broadcom.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/net/phy/broadcom.c b/drivers/net/phy/broadcom.c
index 13e43fee1906..9b1de54fd483 100644
--- a/drivers/net/phy/broadcom.c
+++ b/drivers/net/phy/broadcom.c
@@ -859,7 +859,7 @@ static int brcm_fet_config_init(struct phy_device *phydev)
return reg;
/* Unmask events we are interested in and mask interrupts globally. */
- if (phydev->phy_id == PHY_ID_BCM5221)
+ if (phydev->drv->phy_id == PHY_ID_BCM5221)
reg = MII_BRCM_FET_IR_ENABLE |
MII_BRCM_FET_IR_MASK;
else
@@ -888,7 +888,7 @@ static int brcm_fet_config_init(struct phy_device *phydev)
return err;
}
- if (phydev->phy_id != PHY_ID_BCM5221) {
+ if (phydev->drv->phy_id != PHY_ID_BCM5221) {
/* Set the LED mode */
reg = __phy_read(phydev, MII_BRCM_FET_SHDW_AUXMODE4);
if (reg < 0) {
@@ -1009,7 +1009,7 @@ static int brcm_fet_suspend(struct phy_device *phydev)
return err;
}
- if (phydev->phy_id == PHY_ID_BCM5221)
+ if (phydev->drv->phy_id == PHY_ID_BCM5221)
/* Force Low Power Mode with clock enabled */
reg = BCM5221_SHDW_AM4_EN_CLK_LPM | BCM5221_SHDW_AM4_FORCE_LPM;
else
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [v4,net] net: phy: broadcom: Correct BCM5221 PHY model detection
2025-03-27 6:29 [v4,net] net: phy: broadcom: Correct BCM5221 PHY model detection Jim Liu
@ 2025-03-27 13:37 ` Florian Fainelli
2025-03-31 12:50 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Florian Fainelli @ 2025-03-27 13:37 UTC (permalink / raw)
To: Jim Liu, JJLIU0, andrew, hkallweit1, kuba, linux, edumazet,
pabeni
Cc: netdev, giulio.benetti+tekvox, bcm-kernel-feedback-list,
linux-kernel, Michal Swiatkowski
On 3/26/2025 11:29 PM, Jim Liu wrote:
> Correct detect condition is applied to the entire 5221 family of PHYs.
>
> Fixes: 3abbd0699b67 ("net: phy: broadcom: add support for BCM5221 phy")
> Signed-off-by: Jim Liu <jim.t90615@gmail.com>
> Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Thanks!
--
Florian
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [v4,net] net: phy: broadcom: Correct BCM5221 PHY model detection
2025-03-27 6:29 [v4,net] net: phy: broadcom: Correct BCM5221 PHY model detection Jim Liu
2025-03-27 13:37 ` Florian Fainelli
@ 2025-03-31 12:50 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-03-31 12:50 UTC (permalink / raw)
To: Jim Liu
Cc: JJLIU0, florian.fainelli, andrew, hkallweit1, kuba, linux,
edumazet, pabeni, netdev, giulio.benetti+tekvox,
bcm-kernel-feedback-list, linux-kernel, michal.swiatkowski
Hello:
This patch was applied to netdev/net.git (main)
by David S. Miller <davem@davemloft.net>:
On Thu, 27 Mar 2025 14:29:42 +0800 you wrote:
> Correct detect condition is applied to the entire 5221 family of PHYs.
>
> Fixes: 3abbd0699b67 ("net: phy: broadcom: add support for BCM5221 phy")
> Signed-off-by: Jim Liu <jim.t90615@gmail.com>
> Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
> ---
> v4:
> modify detect condition
>
> [...]
Here is the summary with links:
- [v4,net] net: phy: broadcom: Correct BCM5221 PHY model detection
https://git.kernel.org/netdev/net/c/4f1eaabb4b66
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-03-31 12:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-27 6:29 [v4,net] net: phy: broadcom: Correct BCM5221 PHY model detection Jim Liu
2025-03-27 13:37 ` Florian Fainelli
2025-03-31 12:50 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox