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)
commitfb3b596d3c4a8b6e3867079794856637db4e5283
tree923c72b10db37ff606b582bb1165475cb3e66427
parent627103797189e4e423848e1b2e2c4af879cb33ac
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