OpenCloudOS-Kernel/drivers/usb/cdns3
Pawel Laszczak 9816144313 usb: cdns3: Fix sheduling with locks held.
Patch fix issue in cdns3_ep0_feature_handle_device function.

The function usleep_range can't be used there because this function is
called with locks held and IRQs disabled in
cdns3_device_thread_irq_handler().

To resolve this issue patch replaces usleep_range with mdelay.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Pawel Laszczak <pawell@cadence.com>
Fixes: 7733f6c32e ("usb: cdns3: Add Cadence USB3 DRD Driver")
Reviewed-by: Peter Chen <peter.chen@nxp.com>
Link: https://lore.kernel.org/r/1569484721-4424-1-git-send-email-pawell@cadence.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-10-04 11:02:58 +02:00
..
Kconfig
Makefile
cdns3-pci-wrap.c usb: cdns3: Fix use after free in probe error handling 2019-10-04 11:02:58 +02:00
core.c usb: cdns3: Remove redundant dev_err call in cdns3_probe() 2019-09-03 20:31:34 +02:00
core.h
debug.h
drd.c
drd.h
ep0.c usb: cdns3: Fix sheduling with locks held. 2019-10-04 11:02:58 +02:00
gadget-export.h
gadget.c usb: cdns3: fix spelling mistake: "cnfiguration" -> "configuration" 2019-09-03 15:46:46 +02:00
gadget.h
host-export.h
host.c
trace.c
trace.h