Skip to content

Commit ba54b1a

Browse files
aneftinanguy11
authored andcommitted
intel: legacy: Partial revert of field get conversion
Refactoring of the field get conversion introduced a regression in the legacy Wake On Lan from a magic packet with i219 devices. Rx address copied not correctly from MAC to PHY with FIELD_GET macro. Fixes: b9a4525 ("intel: legacy: field get conversion") Suggested-by: Vitaly Lifshits <[email protected]> Signed-off-by: Sasha Neftin <[email protected]> Tested-by: Naama Meir <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
1 parent ef27f65 commit ba54b1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/intel/e1000e/ich8lan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2559,7 +2559,7 @@ void e1000_copy_rx_addrs_to_phy_ich8lan(struct e1000_hw *hw)
25592559
hw->phy.ops.write_reg_page(hw, BM_RAR_H(i),
25602560
(u16)(mac_reg & 0xFFFF));
25612561
hw->phy.ops.write_reg_page(hw, BM_RAR_CTRL(i),
2562-
FIELD_GET(E1000_RAH_AV, mac_reg));
2562+
(u16)((mac_reg & E1000_RAH_AV) >> 16));
25632563
}
25642564

25652565
e1000_disable_phy_wakeup_reg_access_bm(hw, &phy_reg);

0 commit comments

Comments
 (0)