net: pxa168_eth: set the mac address on the Ethernet controller
authorAntoine Ténart <antoine.tenart@free-electrons.com>
Tue, 30 Sep 2014 14:28:11 +0000 (16:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Sep 2014 20:36:12 +0000 (16:36 -0400)
commit39830689ef0a935a4a2ac35c51568f483e1c5f7f
tree17f596b84153e9f674254802d7a6915ef853580c
parent09f5da1b6afbebaa0e04e65c7cd732099686ec5a
net: pxa168_eth: set the mac address on the Ethernet controller

When changing the MAC address, in addition to updating the dev_addr in
the net_device structure, this patch also update the MAC address
registers (high and low) of the Ethernet controller with the new MAC.
The address stored in these registers is used for IEEE 802.3x Ethernet
flow control, which is already enabled.

Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/pxa168_eth.c