12345678910111213141516171819202122232425262728293031323334353637383940 |
- From 1541649a9dd79e9b941d399de564475e426a2d0b Mon Sep 17 00:00:00 2001
- From: Florian Fainelli <[email protected]>
- Date: Tue, 25 Sep 2018 11:28:45 -0700
- Subject: [PATCH 602/660] net: phy: Stop with excessive soft reset
- While consolidating the PHY reset in phy_init_hw() an unconditionaly
- BMCR soft-reset I became quite trigger happy with those. This was later
- on deactivated for the Generic PHY driver on the premise that a prior
- software entity (e.g: bootloader) might have applied workarounds in
- commit 0878fff1f42c ("net: phy: Do not perform software reset for
- Generic PHY").
- Since we have a hook to wire-up a soft_reset callback, just use that and
- get rid of the call to genphy_soft_reset() entirely. This speeds up
- initialization and link establishment for most PHYs out there that do
- not require a reset.
- Fixes: 87aa9f9c61ad ("net: phy: consolidate PHY reset in phy_init_hw()")
- Tested-by: Wang, Dongsheng <[email protected]>
- Tested-by: Chris Healy <[email protected]>
- Tested-by: Andrew Lunn <[email protected]>
- Tested-by: Clemens Gruber <[email protected]>
- Signed-off-by: Florian Fainelli <[email protected]>
- Signed-off-by: David S. Miller <[email protected]>
- Signed-off-by: Russell King <[email protected]>
- ---
- drivers/net/phy/phy_device.c | 2 --
- 1 file changed, 2 deletions(-)
- --- a/drivers/net/phy/phy_device.c
- +++ b/drivers/net/phy/phy_device.c
- @@ -886,8 +886,6 @@ int phy_init_hw(struct phy_device *phyde
-
- if (phydev->drv->soft_reset)
- ret = phydev->drv->soft_reset(phydev);
- - else
- - ret = genphy_soft_reset(phydev);
-
- if (ret < 0)
- return ret;
|