Hello.

On 18-03-2013 12:19, Felipe Balbi wrote:

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 <[email protected]>
---
  drivers/usb/gadget/net2272.c | 7 +++++++
  drivers/usb/gadget/net2280.c | 7 +++++++
  2 files changed, 14 insertions(+)

[...]
diff --git a/drivers/usb/gadget/net2280.c b/drivers/usb/gadget/net2280.c
index a1b650e..3665e5e 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);

   Spaces befere ( not allowed by scripts/checkpatch.pl.

WBR, Sergei

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to