|
@@ -936,12 +936,14 @@ static s32 e1000_reset_hw_82571(struct e1000_hw *hw)
|
|
|
ew32(IMC, 0xffffffff);
|
|
|
icr = er32(ICR);
|
|
|
|
|
|
- /* Install any alternate MAC address into RAR0 */
|
|
|
- ret_val = e1000_check_alt_mac_addr_generic(hw);
|
|
|
- if (ret_val)
|
|
|
- return ret_val;
|
|
|
+ if (hw->mac.type == e1000_82571) {
|
|
|
+ /* Install any alternate MAC address into RAR0 */
|
|
|
+ ret_val = e1000_check_alt_mac_addr_generic(hw);
|
|
|
+ if (ret_val)
|
|
|
+ return ret_val;
|
|
|
|
|
|
- e1000e_set_laa_state_82571(hw, true);
|
|
|
+ e1000e_set_laa_state_82571(hw, true);
|
|
|
+ }
|
|
|
|
|
|
/* Reinitialize the 82571 serdes link state machine */
|
|
|
if (hw->phy.media_type == e1000_media_type_internal_serdes)
|
|
@@ -1618,14 +1620,16 @@ static s32 e1000_read_mac_addr_82571(struct e1000_hw *hw)
|
|
|
{
|
|
|
s32 ret_val = 0;
|
|
|
|
|
|
- /*
|
|
|
- * If there's an alternate MAC address place it in RAR0
|
|
|
- * so that it will override the Si installed default perm
|
|
|
- * address.
|
|
|
- */
|
|
|
- ret_val = e1000_check_alt_mac_addr_generic(hw);
|
|
|
- if (ret_val)
|
|
|
- goto out;
|
|
|
+ if (hw->mac.type == e1000_82571) {
|
|
|
+ /*
|
|
|
+ * If there's an alternate MAC address place it in RAR0
|
|
|
+ * so that it will override the Si installed default perm
|
|
|
+ * address.
|
|
|
+ */
|
|
|
+ ret_val = e1000_check_alt_mac_addr_generic(hw);
|
|
|
+ if (ret_val)
|
|
|
+ goto out;
|
|
|
+ }
|
|
|
|
|
|
ret_val = e1000_read_mac_addr_generic(hw);
|
|
|
|