]> git.baikalelectronics.ru Git - kernel.git/commit
net: usb: ax88179_178a: write mac to hardware in get_mac_addr
authorPeter Fink <pfink@christ-es.de>
Thu, 10 Oct 2019 13:00:22 +0000 (15:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 12 Oct 2019 03:50:37 +0000 (20:50 -0700)
commitacee92e9e8f28ee9b9b4a55ffe6c677a106bb967
treeb889d5daf77cbebf07e0452526df297aeda6feea
parenta562259d2ab008f8059f51360b00345767866bda
net: usb: ax88179_178a: write mac to hardware in get_mac_addr

When the MAC address is supplied via device tree or a random
MAC is generated it has to be written to the asix chip in
order to receive any data.

Previously in 1a7f4ce06175 ("net: usb: ax88179_178a: allow
optionally getting mac address from device tree") this line was
omitted because it seemed to work perfectly fine without it.

But it was simply not detected because the chip keeps the mac
stored even beyond a reset and it was tested on a hardware
with an integrated UPS where the asix chip was permanently
powered on even throughout power cycles.

Fixes: 1a7f4ce06175 ("net: usb: ax88179_178a: allow optionally getting mac address from device tree")
Signed-off-by: Peter Fink <pfink@christ-es.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/ax88179_178a.c