mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
usb: mtu3: reset gadget when VBUS_FALL interrupt arises
When VBUS_FALL interrupt arises, it means U3 device is disconnected with host, so need reset status of gadget Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
3d7678e2a0
commit
4f9f032c25
1 changed files with 3 additions and 1 deletions
|
@ -668,8 +668,10 @@ static irqreturn_t mtu3_u3_ltssm_isr(struct mtu3 *mtu)
|
|||
if (ltssm & (HOT_RST_INTR | WARM_RST_INTR))
|
||||
mtu3_gadget_reset(mtu);
|
||||
|
||||
if (ltssm & VBUS_FALL_INTR)
|
||||
if (ltssm & VBUS_FALL_INTR) {
|
||||
mtu3_ss_func_set(mtu, false);
|
||||
mtu3_gadget_reset(mtu);
|
||||
}
|
||||
|
||||
if (ltssm & VBUS_RISE_INTR)
|
||||
mtu3_ss_func_set(mtu, true);
|
||||
|
|
Loading…
Reference in a new issue