linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] usb: mtu3: sync interrupt before unbind the udc
@ 2022-06-09  7:42 Chunfeng Yun
  2022-06-09  7:42 ` [PATCH 2/3] usb: mtu3: implement udc_async_callbacks of gadget operation Chunfeng Yun
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Chunfeng Yun @ 2022-06-09  7:42 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Chunfeng Yun, Matthias Brugger, linux-usb, linux-arm-kernel,
	linux-mediatek, linux-kernel, Eddie Hung

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>
---
 drivers/usb/mtu3/mtu3_gadget.c | 1 +
 1 file changed, 1 insertion(+)

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;
 
-- 
2.18.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-06-10 10:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-09  7:42 [PATCH 1/3] usb: mtu3: sync interrupt before unbind the udc Chunfeng Yun
2022-06-09  7:42 ` [PATCH 2/3] usb: mtu3: implement udc_async_callbacks of gadget operation Chunfeng Yun
2022-06-10 10:36   ` AngeloGioacchino Del Regno
2022-06-09  7:42 ` [PATCH 3/3] usb: mtu3: register mtu3_irq by threaded irq Chunfeng Yun
2022-06-10 10:36   ` AngeloGioacchino Del Regno
2022-06-10 10:36 ` [PATCH 1/3] usb: mtu3: sync interrupt before unbind the udc AngeloGioacchino Del Regno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).