e1000e: fix incorrect link status when switch module pulled
On 82571 with SerDes, the true link state is not always correct when read from the STATUS register; use existing e1000_has_link() function instead. Signed-off-by: Bruce Allan <bruce.w.allan@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
8452759060
commit
a20e4cf9e6
@@ -3421,7 +3421,7 @@ static void e1000_print_link_info(struct e1000_adapter *adapter)
|
||||
((ctrl & E1000_CTRL_TFCE) ? "TX" : "None" )));
|
||||
}
|
||||
|
||||
static bool e1000_has_link(struct e1000_adapter *adapter)
|
||||
bool e1000_has_link(struct e1000_adapter *adapter)
|
||||
{
|
||||
struct e1000_hw *hw = &adapter->hw;
|
||||
bool link_active = 0;
|
||||
|
Reference in New Issue
Block a user