phy layer: fix genphy_setup_forced (don't reset)
Subsystems (3)
PATCH 1/1 phy layer: fix genphy_setup_forced (don't reset)
Writing BMCR_RESET bit will reset MII_BMCR to default values. This is clearly not what we want.
Signed-off-by Domen Puncer <[email protected]>
--- drivers/net/phy/phy_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/phy/phy_device.c +1 -1
@@ -364,7 +364,7 @@ EXPORT_SYMBOL(genphy_config_advert);*/ int genphy_setup_forced (struct phy_device *phydev) { -int ctl =BMCR_RESET ; +int ctl =0 ; phydev->pause = phydev->asym_pause =0 ;
Quoted 5 lines · Domen Puncer
Writing
BMCR_RESETbit will resetMII_BMCRto default values. This is clearly not what we want.Signed-off-by Domen Puncer <[email protected]>
Acked-by Andy Fleming <[email protected]>
I could have sworn there was a patch that did this, already, but it must have lost steam somewhere.
Andy
Jeff Garzik
AppliedQuoted 15 lines · Domen Puncer
Writing
BMCR_RESETbit will resetMII_BMCRto default values. This is clearly not what we want.Signed-off-by Domen Puncer <[email protected]>--- drivers/net/phy/phy_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Index:
work-powerpc.git/drivers/net/phy/phy_device.c
===================================================================
drivers/net/phy/phy_device.c EXPORT_SYMBOL(genphy_config_advert); · line 369
Quoted 7 lines
drivers/net/phy/phy_device.c +1
-1@@ -364,7 +364,7 @@ EXPORT_SYMBOL(genphy_config_advert);*/ int genphy_setup_forced (struct phy_device *phydev) { -int ctl =BMCR_RESET ; +int ctl =0 ; phydev->pause = phydev->asym_pause =0 ;
applied