]> git.karo-electronics.de Git - karo-tx-linux.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)
commit8ef66bdc4bda6aac2dae73b84d79dc8c2db33637
treea4a78ce0bbf4e7a320d10f1c80b80e93fc08a1ec
parent2193ceabdcde1fca5e017acf1d0023285531748f
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