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)
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

index de0de015eaf002d7b13284cc64316078fbfbbbc9..5c60a8c5a0b5c7cef25ca2fcbf2ac396c1b5b6b5 100644 (file)
@@ -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;
 }