]> git.baikalelectronics.ru Git - kernel.git/commit
asix: fix setting custom MAC address on Asix 88772 devices
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>
Tue, 10 Jan 2012 06:40:17 +0000 (06:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Jan 2012 22:59:48 +0000 (14:59 -0800)
commit4cdd5c91d8f8c93b5bf2a7b1524575ce9aecc1a6
treea4a78ce0bbf4e7a320d10f1c80b80e93fc08a1ec
parent50cff4c11ee3f3e3ee18ce2d84eeafb1c5515fb6
asix: fix setting custom MAC address on Asix 88772 devices

In kernel v3.2 initialization sequence for Asix 88772 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 ax88772_reset causes reload of MAC address from EEPROM.

This patch fixes the issue by rewriting MAC address at end of ax88772_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