usb: mtu3: clear SOFTCONN when clear USB3_EN if work as HS mode
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Thu, 29 Nov 2018 02:34:36 +0000 (10:34 +0800)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Wed, 5 Dec 2018 09:12:28 +0000 (11:12 +0200)
commit47b6f8bf870035d420614844de5e308abe505e8a
tree3b66d4b6d288f4cc8de5f299fa7c751c0be10115
parent49187dd14cc84f0ff7db2876c43ad510eeec04b0
usb: mtu3: clear SOFTCONN when clear USB3_EN if work as HS mode

When the controller supports SS mode, but works as HS mode, the
SOFTCONN will not be cleared automatically when clear USB3_EN
by default, this cause an issue that can't disconnect from host,
so clear SOFTCONN when clear USB3_EN when the class driver want
to disable the D+ pullup.

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/mtu3/mtu3_core.c
drivers/usb/mtu3/mtu3_hw_regs.h