diff options
author | Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> | 2011-04-04 13:09:22 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-04-13 15:44:00 -0700 |
commit | 2c2da1799ba776c4bd8d51ee46d9f00cb4cc6120 (patch) | |
tree | 2695612408a89e40fb180e44065e8a616f942609 /drivers/usb/gadget/r8a66597-udc.c | |
parent | 0291303d37585ab9056bae9fac1d1e13ae1ce913 (diff) | |
download | kernel_samsung_tuna-2c2da1799ba776c4bd8d51ee46d9f00cb4cc6120.zip kernel_samsung_tuna-2c2da1799ba776c4bd8d51ee46d9f00cb4cc6120.tar.gz kernel_samsung_tuna-2c2da1799ba776c4bd8d51ee46d9f00cb4cc6120.tar.bz2 |
usb: r8a66597-udc: fix spinlock usage
Because the disconnect function in the composite driver will call spin_lock,
this driver has to call spin_unlock before calling driver->disconnet().
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget/r8a66597-udc.c')
-rw-r--r-- | drivers/usb/gadget/r8a66597-udc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/gadget/r8a66597-udc.c b/drivers/usb/gadget/r8a66597-udc.c index 0151185..6dcc1f6 100644 --- a/drivers/usb/gadget/r8a66597-udc.c +++ b/drivers/usb/gadget/r8a66597-udc.c @@ -1083,7 +1083,9 @@ static void irq_device_state(struct r8a66597 *r8a66597) if (dvsq == DS_DFLT) { /* bus reset */ + spin_unlock(&r8a66597->lock); r8a66597->driver->disconnect(&r8a66597->gadget); + spin_lock(&r8a66597->lock); r8a66597_update_usb_speed(r8a66597); } if (r8a66597->old_dvsq == DS_CNFG && dvsq != DS_CNFG) |