OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a97856
)
usbnet: cdc-ether: apply usbnet_link_change
author
Ming Lei
<ming.lei@canonical.com>
Thu, 11 Apr 2013 04:40:36 +0000
(
04:40
+0000)
committer
David S. Miller
<davem@davemloft.net>
Thu, 11 Apr 2013 19:57:17 +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/cdc_ether.c
patch
|
blob
|
history
diff --git
a/drivers/net/usb/cdc_ether.c
b/drivers/net/usb/cdc_ether.c
index
57136dc
..
e965806
100644
(file)
--- a/
drivers/net/usb/cdc_ether.c
+++ b/
drivers/net/usb/cdc_ether.c
@@
-406,10
+406,7
@@
void usbnet_cdc_status(struct usbnet *dev, struct urb *urb)
case USB_CDC_NOTIFY_NETWORK_CONNECTION:
netif_dbg(dev, timer, dev->net, "CDC: carrier %s\n",
event->wValue ? "on" : "off");
- if (event->wValue)
- netif_carrier_on(dev->net);
- else
- netif_carrier_off(dev->net);
+ usbnet_link_change(dev, event->wValue, 0);
break;
case USB_CDC_NOTIFY_SPEED_CHANGE: /* tx/rx rates */
netif_dbg(dev, timer, dev->net, "CDC: speed change (len %d)\n",