acrn-kernel/drivers/usb/chipidea
Xu Yang 451b15ed13 usb: chipidea: core: fix possible concurrent when switch role
The user may call role_store() when driver is handling
ci_handle_id_switch() which is triggerred by otg event or power lost
event. Unfortunately, the controller may go into chaos in this case.
Fix this by protecting it with mutex lock.

Fixes: a932a8041f ("usb: chipidea: core: add sysfs group")
cc: <stable@vger.kernel.org>
Acked-by: Peter Chen <peter.chen@kernel.org>
Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Link: https://lore.kernel.org/r/20230317061516.2451728-2-xu.yang_2@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-03-23 18:17:32 +01:00
..
Kconfig
Makefile
bits.h
ci.h usb: chipidea: core: fix possible concurrent when switch role 2023-03-23 18:17:32 +01:00
ci_hdrc_imx.c usb: chipidea: ci_hdrc_imx: use dev_err_probe 2023-01-31 10:39:59 +01:00
ci_hdrc_imx.h usb: chipidea: usbmisc: group usbmisc operations for PM 2022-10-23 14:34:53 +02:00
ci_hdrc_msm.c
ci_hdrc_pci.c
ci_hdrc_tegra.c
ci_hdrc_usb2.c
core.c usb: chipidea: core: fix possible concurrent when switch role 2023-03-23 18:17:32 +01:00
debug.c USB: chipidea: fix memory leak with using debugfs_lookup() 2023-02-06 13:46:41 +01:00
host.c usb: chipidea: host: add suspend/resume support for host controller 2022-10-23 14:34:53 +02:00
host.h
otg.c usb: chipidea: core: fix possible concurrent when switch role 2023-03-23 18:17:32 +01:00
otg.h usb: chipidea: core: add controller resume support when controller is powered off 2022-10-23 14:34:53 +02:00
otg_fsm.c usb: chipidea: fix deadlock in ci_otg_del_timer 2022-11-09 12:34:18 +01:00
otg_fsm.h
trace.c
trace.h
udc.c usb: chipidea: udc: add suspend/resume support for device controller 2022-10-23 14:34:53 +02:00
udc.h
ulpi.c
usbmisc_imx.c usb: chipidea: imx: Drop empty platform remove function 2023-01-06 16:37:14 +01:00