• Chunfeng Yun's avatar
    usb: mtu3: disable vbus rise/fall interrupts of ltssm · adc23f16
    Chunfeng Yun authored
    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: default avatarChunfeng Yun <chunfeng.yun@mediatek.com>
    Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
    adc23f16
mtu3_gadget.c 16 KB