]> asedeno.scripts.mit.edu Git - linux.git/commit
usb: mtu3: disable vbus rise/fall interrupts of ltssm
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Fri, 7 Sep 2018 06:00:39 +0000 (14:00 +0800)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 2 Oct 2018 07:39:02 +0000 (10:39 +0300)
commitadc23f16bcc56768500034cd2e398f60b120ee42
tree8463532ef2f21fc483f9108b0da69897bef33a92
parent794f97a4b964a5f9880529a561ab26ed781bca56
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: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/mtu3/mtu3_core.c
drivers/usb/mtu3/mtu3_gadget.c