]> git.karo-electronics.de Git - linux-beck.git/commitdiff
usb: gadget: net2280: don't connect from udc_start
authorMian Yousaf Kaukab <yousaf.kaukab@intel.com>
Mon, 2 Feb 2015 09:55:26 +0000 (10:55 +0100)
committerFelipe Balbi <balbi@ti.com>
Tue, 10 Mar 2015 20:33:31 +0000 (15:33 -0500)
net2280_start can be called with pullup disabled. Don't set
softconnect flag in it. Let net2280_pullup handle the connection part.

Signed-off-by: Mian Yousaf Kaukab <yousaf.kaukab@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/udc/net2280.c

index 5a8f6b6f7c8d77b17869516e7bddab7e9c431e7f..5041e218a30216a137a1d61ad17fdf2145a88bc7 100644 (file)
@@ -2263,7 +2263,6 @@ static int net2280_start(struct usb_gadget *_gadget,
                dev->ep[i].irqs = 0;
 
        /* hook up the driver ... */
-       dev->softconnect = 1;
        driver->driver.bus = NULL;
        dev->driver = driver;