asix: fix setting custom MAC address on Asix 88178 devices
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>
Tue, 10 Jan 2012 06:40:23 +0000 (06:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Jan 2012 22:59:48 +0000 (14:59 -0800)
commit71bc5d94061516c4e70303570128797bcf768b10
tree5625427bd7c047b0feffc0809ab91d91051a2014
parent8ef66bdc4bda6aac2dae73b84d79dc8c2db33637
asix: fix setting custom MAC address on Asix 88178 devices

In kernel v3.2 initialization sequence for Asix 88178 devices was changed so
that hardware is reseted on every time interface is brought up (ifconfig up),
instead just at USB probe time. This causes problem with setting custom MAC
address to device as ax88178_reset causes reload of MAC address from EEPROM.

This patch fixes the issue by rewriting MAC address at end of ax88178_reset.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Acked-by: Grant Grundler <grundler@chromium.org>
Cc: Allan Chou <allan@asix.com.tw>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/asix.c