Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 316920
b: refs/heads/master
c: 31bde1c
h: refs/heads/master
v: v3
  • Loading branch information
Kevin Cernekee authored and Felipe Balbi committed Jun 25, 2012
1 parent 22e8db2 commit 83f3f9c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a188b6897e3dca82dd6f5beceabf1fc62b9786d9
refs/heads/master: 31bde1ceaa873bcaecd49e829bfabceacc4c512d
12 changes: 6 additions & 6 deletions trunk/drivers/usb/gadget/u_ether.c
Original file line number Diff line number Diff line change
Expand Up @@ -798,12 +798,6 @@ int gether_setup_name(struct usb_gadget *g, u8 ethaddr[ETH_ALEN],

SET_ETHTOOL_OPS(net, &ops);

/* two kinds of host-initiated state changes:
* - iff DATA transfer is active, carrier is "on"
* - tx queueing enabled if open *and* carrier is "on"
*/
netif_carrier_off(net);

dev->gadget = g;
SET_NETDEV_DEV(net, &g->dev);
SET_NETDEV_DEVTYPE(net, &gadget_type);
Expand All @@ -817,6 +811,12 @@ int gether_setup_name(struct usb_gadget *g, u8 ethaddr[ETH_ALEN],
INFO(dev, "HOST MAC %pM\n", dev->host_mac);

the_dev = dev;

/* two kinds of host-initiated state changes:
* - iff DATA transfer is active, carrier is "on"
* - tx queueing enabled if open *and* carrier is "on"
*/
netif_carrier_off(net);
}

return status;
Expand Down

0 comments on commit 83f3f9c

Please sign in to comment.