Skip to content

Commit

Permalink
net: smc911x: Keep MAC programmed
Browse files Browse the repository at this point in the history
Make sure to keep the MAC address programmed in the SMC911x ADDRH
and ADDRL registers. Linux can read those registers to determine
the MAC address on EEPROM-less configurations.

Signed-off-by: Marek Vasut <[email protected]>
Cc: Joe Hershberger <[email protected]>
Cc: Tom Rini <[email protected]>
  • Loading branch information
Marek Vasut authored and trini committed Nov 7, 2014
1 parent 389b89c commit 99dd6ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/smc911x.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ static int smc911x_send(struct eth_device *dev, void *packet, int length)
static void smc911x_halt(struct eth_device *dev)
{
smc911x_reset(dev);
smc911x_handle_mac_address(dev);
}

static int smc911x_rx(struct eth_device *dev)
Expand Down

0 comments on commit 99dd6ab

Please sign in to comment.