projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a34b0a
)
usbnet: asix: apply usbnet_link_change
author
Ming Lei
<ming.lei@canonical.com>
Thu, 11 Apr 2013 04:40:34 +0000
(
04:40
+0000)
committer
David S. Miller
<davem@davemloft.net>
Thu, 11 Apr 2013 19:57:16 +0000
(15:57 -0400)
Use usbnet_link_change to handle link change centrally.
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/asix_devices.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/usb/asix_devices.c
b/drivers/net/usb/asix_devices.c
index 709753469099c032aad55c3b98da120a0f930b2e..ad5d1e4384db7b3b6c3ab6f2406b5cd8075cd2d0 100644
(file)
--- a/
drivers/net/usb/asix_devices.c
+++ b/
drivers/net/usb/asix_devices.c
@@
-55,11
+55,7
@@
static void asix_status(struct usbnet *dev, struct urb *urb)
event = urb->transfer_buffer;
link = event->link & 0x01;
if (netif_carrier_ok(dev->net) != link) {
- if (link) {
- netif_carrier_on(dev->net);
- usbnet_defer_kevent (dev, EVENT_LINK_RESET );
- } else
- netif_carrier_off(dev->net);
+ usbnet_link_change(dev, link, 1);
netdev_dbg(dev->net, "Link Status is: %d\n", link);
}
}