summaryrefslogtreecommitdiff
path: root/drivers/usb/mtu3/mtu3_gadget.c
diff options
context:
space:
mode:
authorChunfeng Yun <chunfeng.yun@mediatek.com>2018-05-23 11:53:17 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-05-24 19:09:37 +0300
commitfbe9db75b4941b1c52f37a9a3916971612793b0a (patch)
tree96664b8363f1fb2717977c483eef9007e3879a24 /drivers/usb/mtu3/mtu3_gadget.c
parent5fcdd6de180757a3cc9a5ad66a251b81bc0b2364 (diff)
downloadlinux-fbe9db75b4941b1c52f37a9a3916971612793b0a.tar.xz
usb: mtu3: clear test_mode flag when reset
Clear test_mode flag when the gadget is reset by host, otherwise will affect the next test item. Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/mtu3/mtu3_gadget.c')
-rw-r--r--drivers/usb/mtu3/mtu3_gadget.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/mtu3/mtu3_gadget.c b/drivers/usb/mtu3/mtu3_gadget.c
index de0de015eaf0..5c60a8c5a0b5 100644
--- a/drivers/usb/mtu3/mtu3_gadget.c
+++ b/drivers/usb/mtu3/mtu3_gadget.c
@@ -719,4 +719,5 @@ void mtu3_gadget_reset(struct mtu3 *mtu)
mtu->u1_enable = 0;
mtu->u2_enable = 0;
mtu->delayed_status = false;
+ mtu->test_mode = false;
}