diff options
author | Chunfeng Yun | 2018-08-29 04:36:50 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2018-09-10 20:09:09 +0200 |
commit | 0eae49582b4dee1a0e96007e1dea5122db98371a (patch) | |
tree | 645922ba6660c5d15180d39b5cd955c719becfee /drivers/usb/mtu3/mtu3_core.c | |
parent | USB: wusbcore: Switch to bitmap_zalloc() (diff) | |
download | kernel-qcow2-linux-0eae49582b4dee1a0e96007e1dea5122db98371a.tar.gz kernel-qcow2-linux-0eae49582b4dee1a0e96007e1dea5122db98371a.tar.xz kernel-qcow2-linux-0eae49582b4dee1a0e96007e1dea5122db98371a.zip |
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>
Diffstat (limited to 'drivers/usb/mtu3/mtu3_core.c')
-rw-r--r-- | drivers/usb/mtu3/mtu3_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/mtu3/mtu3_core.c b/drivers/usb/mtu3/mtu3_core.c index eecfd0671362..2ec1da641a19 100644 --- a/drivers/usb/mtu3/mtu3_core.c +++ b/drivers/usb/mtu3/mtu3_core.c @@ -181,8 +181,8 @@ static void mtu3_intr_enable(struct mtu3 *mtu) if (mtu->is_u3_ip) { /* Enable U3 LTSSM interrupts */ - value = HOT_RST_INTR | WARM_RST_INTR | VBUS_RISE_INTR | - VBUS_FALL_INTR | ENTER_U3_INTR | EXIT_U3_INTR; + value = HOT_RST_INTR | WARM_RST_INTR | + ENTER_U3_INTR | EXIT_U3_INTR; mtu3_writel(mbase, U3D_LTSSM_INTR_ENABLE, value); } |