usb: mtu3: disable vbus rise/fall interrupts of ltssm
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Wed, 29 Aug 2018 02:36:50 +0000 (10:36 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2018 18:09:09 +0000 (20:09 +0200)
commit0eae49582b4dee1a0e96007e1dea5122db98371a
tree645922ba6660c5d15180d39b5cd955c719becfee
parent1973d029d6e91c2e364492a01e53cc8e7cc66b34
usb: mtu3: disable vbus rise/fall interrupts of ltssm

The vbus rise & fall interrupts are used to enable and disable
U3 function of device automatically, this cause some issues when
class driver is initialized as deactivated, and will skip over
software-controlled connect by pullup(), but UDC wants to keep
disconnect until usb_gadget_activate() is called which calls
pullup() if needed. So we disable vbus rise & fall interrupts
and just use pullup() to enable & disable U3 function, and reset
mtu3 state when disconnect instead when vbus fall.

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/mtu3/mtu3_core.c
drivers/usb/mtu3/mtu3_gadget.c