projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
usb: gadget: u_ether: Re-attach netif device to mirror detachment
[linux-2.6-microblaze.git]
/
drivers
/
usb
/
gadget
/
function
/
u_ether.c
diff --git
a/drivers/usb/gadget/function/u_ether.c
b/drivers/usb/gadget/function/u_ether.c
index
9d1c40c
..
3c5a6f6
100644
(file)
--- a/
drivers/usb/gadget/function/u_ether.c
+++ b/
drivers/usb/gadget/function/u_ether.c
@@
-1163,6
+1163,8
@@
struct net_device *gether_connect(struct gether *link)
if (netif_running(dev->net))
eth_start(dev, GFP_ATOMIC);
+ netif_device_attach(dev->net);
+
/* on error, disable any endpoints */
} else {
(void) usb_ep_disable(link->out_ep);