usb: mtu3: implement udc_async_callbacks of gadget operation
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Thu, 9 Jun 2022 07:42:32 +0000 (15:42 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jun 2022 09:52:52 +0000 (11:52 +0200)
commit54c4862f29725a0a20b09a10f2fa788a973713ee
tree846524fcdc024ca9ae2e37eb9a1a6cfbbbb1b948
parent5e1fa6dd4caa7ce26029427647bc2f424784a559
usb: mtu3: implement udc_async_callbacks of gadget operation

Implement udc_async_callbacks hook function to avoid a race when unnbinding
gadget drivers, refer to:
7dc0c55e9f30 ('USB: UDC core: Add udc_async_callbacks gadget op')

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Link: https://lore.kernel.org/r/20220609074233.15532-2-chunfeng.yun@mediatek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/mtu3/mtu3.h
drivers/usb/mtu3/mtu3_gadget.c
drivers/usb/mtu3/mtu3_gadget_ep0.c