igb: Program MDICNFG register prior to PHY init
authorAlexander Duyck <alexander.h.duyck@intel.com>
Tue, 3 Aug 2010 11:50:08 +0000 (11:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Aug 2010 23:40:53 +0000 (16:40 -0700)
commit99870a73d406e5bd235bc8e5aca6893a68184881
tree7d99cc6cf39dd831bcd2d296bcab3822ab6a9a06
parent96f2bd13bfb6df5beec7fe55405ad94b528b8b4c
igb: Program MDICNFG register prior to PHY init

This patch addresses an issue seen on 82580 in which the MDICNFG
register will be reset during a single function reset and as a
result we will be unable to communicate with the PHY.  To correct
the issue, added a call to reset_mdicnfg just prior to the first
access of the MDICNFG register in sgnii_uses_mdio.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Jeff Pieper <jeffrey.e.pieper@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/igb/e1000_82575.c