usb: mtu3: sync interrupt before unbind the udc
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Thu, 9 Jun 2022 07:42:31 +0000 (15:42 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jun 2022 09:52:52 +0000 (11:52 +0200)
commit5e1fa6dd4caa7ce26029427647bc2f424784a559
treeae0ae8b7124d899d322e4a37b29182cfdfc935cb
parent757bdf1f2fb5f1281cb13da5f24860ae81c6140e
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>
drivers/usb/mtu3/mtu3_gadget.c