diff options
author | Chunfeng Yun <chunfeng.yun@mediatek.com> | 2022-06-09 15:42:31 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-06-10 11:52:52 +0200 |
commit | 5e1fa6dd4caa7ce26029427647bc2f424784a559 (patch) | |
tree | ae0ae8b7124d899d322e4a37b29182cfdfc935cb /drivers/usb/mtu3 | |
parent | 757bdf1f2fb5f1281cb13da5f24860ae81c6140e (diff) | |
download | linux-stable-5e1fa6dd4caa7ce26029427647bc2f424784a559.tar.gz linux-stable-5e1fa6dd4caa7ce26029427647bc2f424784a559.tar.bz2 linux-stable-5e1fa6dd4caa7ce26029427647bc2f424784a559.zip |
usb: mtu3: sync interrupt before unbind the udc
Register gadget irq to avoid the interrupt handler is occurred
or scheduled during the unbind flow, may happen when do android
function switch stress test.
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Link: https://lore.kernel.org/r/20220609074233.15532-1-chunfeng.yun@mediatek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/mtu3')
-rw-r--r-- | drivers/usb/mtu3/mtu3_gadget.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/mtu3/mtu3_gadget.c b/drivers/usb/mtu3/mtu3_gadget.c index 9977600616d7..d57cea62fe6b 100644 --- a/drivers/usb/mtu3/mtu3_gadget.c +++ b/drivers/usb/mtu3/mtu3_gadget.c @@ -680,6 +680,7 @@ int mtu3_gadget_setup(struct mtu3 *mtu) mtu->g.speed = USB_SPEED_UNKNOWN; mtu->g.sg_supported = 0; mtu->g.name = MTU3_DRIVER_NAME; + mtu->g.irq = mtu->irq; mtu->is_active = 0; mtu->delayed_status = false; |