From: Domen Puncer Date: Fri, 17 Aug 2007 06:54:45 +0000 (+0200) Subject: phy layer: fix genphy_setup_forced (don't reset) X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bc1e0a095e9b8c4df4a2eedd7dc6a9d470a0e6b7;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c index a8b74cdab1ea..e275df8c55bc 100644 --- a/drivers/net/phy/phy_device.c +++ b/drivers/net/phy/phy_device.c @@ -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;