usb: qc_ether: enable network interface only when requested
some protocols do not want to enable network interface untill control
plane is initialized, for example, rndis driver enables network
interface only after initialize/packet-filter control messages and
enabling network interface right after set_alt may result in race
conditions w/ dependent clients (like qti module). Add flag to
enable network interface only when requested by ecm or rndis modules.
Change-Id: Ief410e3dfb685a8fc6206b8a58df94f200544ce3
Signed-off-by: Vamsi Krishna <vskrishn@codeaurora.org>
diff --git a/drivers/usb/gadget/u_qc_ether.h b/drivers/usb/gadget/u_qc_ether.h
index 25562da..5d9f738 100644
--- a/drivers/usb/gadget/u_qc_ether.h
+++ b/drivers/usb/gadget/u_qc_ether.h
@@ -82,7 +82,7 @@
/* connect/disconnect is handled by individual functions */
struct net_device *gether_qc_connect_name(struct qc_gether *link,
- const char *netname);
+ const char *netname, bool netif_enable);
void gether_qc_disconnect_name(struct qc_gether *link, const char *netname);
/* each configuration may bind one instance of an ethernet link */