diff options
Diffstat (limited to 'recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.2/0044-asix-fix-setting-custom-MAC-address-on-Asix-88178-de.patch')
-rw-r--r-- | recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.2/0044-asix-fix-setting-custom-MAC-address-on-Asix-88178-de.patch | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.2/0044-asix-fix-setting-custom-MAC-address-on-Asix-88178-de.patch b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.2/0044-asix-fix-setting-custom-MAC-address-on-Asix-88178-de.patch deleted file mode 100644 index ec9189d8..00000000 --- a/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.2/0044-asix-fix-setting-custom-MAC-address-on-Asix-88178-de.patch +++ /dev/null | |||
@@ -1,45 +0,0 @@ | |||
1 | From 45268a6d90150936994e8b3e21eb91a54586685e Mon Sep 17 00:00:00 2001 | ||
2 | From: Jussi Kivilinna <jussi.kivilinna@mbnet.fi> | ||
3 | Date: Tue, 10 Jan 2012 06:40:23 +0000 | ||
4 | Subject: [PATCH 044/129] asix: fix setting custom MAC address on Asix 88178 | ||
5 | devices | ||
6 | |||
7 | commit 71bc5d94061516c4e70303570128797bcf768b10 upstream. | ||
8 | |||
9 | In kernel v3.2 initialization sequence for Asix 88178 devices was changed so | ||
10 | that hardware is reseted on every time interface is brought up (ifconfig up), | ||
11 | instead just at USB probe time. This causes problem with setting custom MAC | ||
12 | address to device as ax88178_reset causes reload of MAC address from EEPROM. | ||
13 | |||
14 | This patch fixes the issue by rewriting MAC address at end of ax88178_reset. | ||
15 | |||
16 | Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi> | ||
17 | Acked-by: Grant Grundler <grundler@chromium.org> | ||
18 | Cc: Allan Chou <allan@asix.com.tw> | ||
19 | Signed-off-by: David S. Miller <davem@davemloft.net> | ||
20 | Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> | ||
21 | --- | ||
22 | drivers/net/usb/asix.c | 7 +++++++ | ||
23 | 1 file changed, 7 insertions(+) | ||
24 | |||
25 | diff --git a/drivers/net/usb/asix.c b/drivers/net/usb/asix.c | ||
26 | index dd2625a..b495821 100644 | ||
27 | --- a/drivers/net/usb/asix.c | ||
28 | +++ b/drivers/net/usb/asix.c | ||
29 | @@ -1316,6 +1316,13 @@ static int ax88178_reset(struct usbnet *dev) | ||
30 | if (ret < 0) | ||
31 | return ret; | ||
32 | |||
33 | + /* Rewrite MAC address */ | ||
34 | + memcpy(data->mac_addr, dev->net->dev_addr, ETH_ALEN); | ||
35 | + ret = asix_write_cmd(dev, AX_CMD_WRITE_NODE_ID, 0, 0, ETH_ALEN, | ||
36 | + data->mac_addr); | ||
37 | + if (ret < 0) | ||
38 | + return ret; | ||
39 | + | ||
40 | ret = asix_write_rx_ctl(dev, AX_DEFAULT_RX_CTL); | ||
41 | if (ret < 0) | ||
42 | return ret; | ||
43 | -- | ||
44 | 1.7.9.5 | ||
45 | |||