|
@@ -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);
|
|
@@ -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;
|