diff options
author | Neil Zhang <zhangwm@marvell.com> | 2011-11-30 09:57:14 +0800 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2011-12-12 11:45:23 +0200 |
commit | 309d6d2be42c895c424a5090fcc2e95ce2d8499a (patch) | |
tree | e306c8d54b7ffe8743d0a67eb04f28587052d587 /drivers/usb/gadget/mv_udc.h | |
parent | 487d54d172b3afd3d2bf124b24eaf7f7e7b8a668 (diff) | |
download | blackbird-op-linux-309d6d2be42c895c424a5090fcc2e95ce2d8499a.tar.gz blackbird-op-linux-309d6d2be42c895c424a5090fcc2e95ce2d8499a.zip |
usb: gadget: mv_udc: disable ISR when stopped
When device is stopped, there is no need to handle ISR.
Especially when otg switch to HOST mode.
Signed-off-by: Neil Zhang <zhangwm@marvell.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/mv_udc.h')
-rw-r--r-- | drivers/usb/gadget/mv_udc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/gadget/mv_udc.h b/drivers/usb/gadget/mv_udc.h index b2c36ee3c82c..3d8404484613 100644 --- a/drivers/usb/gadget/mv_udc.h +++ b/drivers/usb/gadget/mv_udc.h @@ -211,7 +211,8 @@ struct mv_udc { softconnected:1, force_fs:1, clock_gating:1, - active:1; + active:1, + stopped:1; /* stop bit is setted */ struct work_struct vbus_work; struct workqueue_struct *qwork; |