diff options
author | Felipe Balbi <balbi@ti.com> | 2013-03-18 10:14:47 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-03-20 16:46:28 +0200 |
commit | 699412d951e6dd4dec48db88f33dc27b361582f0 (patch) | |
tree | d59e14e3e51503898355949aa81c561ffecef2ac /drivers/usb/gadget/net2280.c | |
parent | 06d9db7273c7bd5b07624b313faeea57a4b31056 (diff) |
usb: gadget: net22xx: fix ->disconnect reporting
with the latest udc_start/udc_stop conversion,
too much code was deleted which ended up creating
a regression in net2272 and net2280 drivers.
To fix the regression we revert one hunk of the
original commits.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/net2280.c')
-rw-r--r-- | drivers/usb/gadget/net2280.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/usb/gadget/net2280.c b/drivers/usb/gadget/net2280.c index a1b650e1133..3105a4d601c 100644 --- a/drivers/usb/gadget/net2280.c +++ b/drivers/usb/gadget/net2280.c @@ -1946,6 +1946,13 @@ stop_activity (struct net2280 *dev, struct usb_gadget_driver *driver) for (i = 0; i < 7; i++) nuke (&dev->ep [i]); + /* report disconnect; the driver is already quiesced */ + if (driver) { + spin_unlock(&dev->lock); + driver->disconnect(&dev->gadget); + spin_lock(&dev->lock); + } + usb_reinit (dev); } |