]> git.baikalelectronics.ru Git - kernel.git/commit
net: systemport: allow changing MAC address
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 8 Dec 2014 23:59:18 +0000 (15:59 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Dec 2014 23:26:08 +0000 (18:26 -0500)
commit2a914a59a31594b6687b41878a3f343c161313dc
tree923c72b10db37ff606b582bb1165475cb3e66427
parente8a3104fd0d0b8835314d7affceff712c91fde0e
net: systemport: allow changing MAC address

Hook a ndo_set_mac_address callback, update the internal Ethernet MAC in
the netdevice structure, and finally write that address down to the
UniMAC registers. If the interface is down, and most likely clock gated,
we do not update the registers but just the local copy, such that next
ndo_open() call will effectively write down the address.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bcmsysport.c