e1000e: fix PHY init workarounds for i217/i218
authorBruce Allan <[email protected]>
Fri, 4 Jan 2013 09:53:19 +0000 (09:53 +0000)
committerJeff Kirsher <[email protected]>
Sun, 27 Jan 2013 09:40:38 +0000 (01:40 -0800)
commit4e03510b4779851db7e9153368d1f856e66ea239
treead63dcd41c095ea4af0a50cb19d50b4ad85cc15d
parented1a42656aa794aa3d6edf5ca83f98835701dc41
e1000e: fix PHY init workarounds for i217/i218

Toggling the LANPHYPC Value bit cycles the power on the PHY and sets it
back to power-on defaults.  This includes setting it's MAC-PHY messaging
mode to use the PCIe-like interconnect, so the MAC must also be set back
from SMBus mode to PCIe mode otherwise the PHY can be inaccessible.

Signed-off-by: Bruce Allan <[email protected]>
Tested-by: Jeff Pieper <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
drivers/net/ethernet/intel/e1000e/ich8lan.c