OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ba4ad4
)
usb: mtu3: clear u1/u2_enable to 0 in mtu3_gadget_reset
author
Chunfeng Yun
<chunfeng.yun@mediatek.com>
Tue, 25 Jul 2017 08:10:23 +0000
(16:10 +0800)
committer
Felipe Balbi
<felipe.balbi@linux.intel.com>
Tue, 15 Aug 2017 09:46:03 +0000
(12:46 +0300)
when the device is reset by host, the status of u1_enable and
u2_enable should also be restored to default value.
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/mtu3/mtu3_gadget.c
patch
|
blob
|
history
diff --git
a/drivers/usb/mtu3/mtu3_gadget.c
b/drivers/usb/mtu3/mtu3_gadget.c
index
a4ad67c
..
434fca5
100644
(file)
--- a/
drivers/usb/mtu3/mtu3_gadget.c
+++ b/
drivers/usb/mtu3/mtu3_gadget.c
@@
-728,5
+728,7
@@
void mtu3_gadget_reset(struct mtu3 *mtu)
mtu->address = 0;
mtu->ep0_state = MU3D_EP0_STATE_SETUP;
mtu->may_wakeup = 0;
+ mtu->u1_enable = 0;
+ mtu->u2_enable = 0;
mtu->delayed_status = false;
}