diff options
author | Chunfeng Yun <chunfeng.yun@mediatek.com> | 2018-05-23 10:53:17 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-24 18:09:37 +0200 |
commit | fbe9db75b4941b1c52f37a9a3916971612793b0a (patch) | |
tree | 96664b8363f1fb2717977c483eef9007e3879a24 /drivers/usb | |
parent | usb: mtu3: fix uncontinuous SeqN issue after disable EP (diff) | |
download | linux-fbe9db75b4941b1c52f37a9a3916971612793b0a.tar.xz linux-fbe9db75b4941b1c52f37a9a3916971612793b0a.zip |
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')
-rw-r--r-- | drivers/usb/mtu3/mtu3_gadget.c | 1 |
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; } |