Skip to content

Commit

Permalink
usb: mtu3: sync interrupt before unbind the udc
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chunfeng Yun authored and gregkh committed Jun 10, 2022
1 parent 757bdf1 commit 5e1fa6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/usb/mtu3/mtu3_gadget.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 5e1fa6d

Please sign in to comment.