usb: mtu3: clear test_mode flag when reset
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Wed, 23 May 2018 08:53:17 +0000 (16:53 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 May 2018 16:09:37 +0000 (18:09 +0200)
commitfbe9db75b4941b1c52f37a9a3916971612793b0a
tree96664b8363f1fb2717977c483eef9007e3879a24
parent5fcdd6de180757a3cc9a5ad66a251b81bc0b2364
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>
drivers/usb/mtu3/mtu3_gadget.c