From: Jeff Kirsher Date: Fri, 13 Jan 2006 00:50:32 +0000 (-0800) Subject: [PATCH] e1000: Fix PHY config for 82573 controller X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7892f59c5ea86115450293441ca10654168e00da;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [PATCH] e1000: Fix PHY config for 82573 controller Added a delay to allow PHY configuration to complete before accessing NVM. Signed-off-by: Jeff Kirsher Signed-off-by: Jesse Brandeburg Signed-off-by: John Ronciak Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/e1000/e1000_hw.c b/drivers/net/e1000/e1000_hw.c index f853e1064ac..45fa386d212 100644 --- a/drivers/net/e1000/e1000_hw.c +++ b/drivers/net/e1000/e1000_hw.c @@ -6722,6 +6722,12 @@ e1000_get_phy_cfg_done(struct e1000_hw *hw) break; } + /* PHY configuration from NVM just starts after EECD_AUTO_RD sets to high. + * Need to wait for PHY configuration completion before accessing NVM + * and PHY. */ + if (hw->mac_type == e1000_82573) + msec_delay(25); + return E1000_SUCCESS; }