linux/drivers/usb/isp1760
Jia-Ju Bai 0f0290089a usb: isp1760: Replace mdelay with msleep in isp1760_init_core
isp1760_init_core() is never called in atomic context.

The call chains ending up at isp1760_init_core() are:
[1] isp1760_init_core() <- isp1760_register() <- isp1760_plat_probe()
[2] isp1760_init_core() <- isp1760_register() <- isp1761_pci_probe()

isp1760_plat_probe() is set as ".probe" in struct platform_driver.
isp1761_pci_probe() is set as ".probe" in struct pci_driver.
These functions are not called in atomic context.

Despite never getting called from atomic context, isp1761_pci_probe()
calls mdelay() to busily wait.
This is not necessary and can be replaced with msleep() to
avoid busy waiting.

This is found by a static analysis tool named DCNS written by myself.
And I also manually check it.

Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-04-22 15:49:42 +02:00
..
isp1760-core.c usb: isp1760: Replace mdelay with msleep in isp1760_init_core 2018-04-22 15:49:42 +02:00
isp1760-core.h USB: isp1760: Remove redundant license text 2017-11-07 15:45:01 +01:00
isp1760-hcd.c USB/PHY patches for 4.15-rc1 2017-11-13 21:14:07 -08:00
isp1760-hcd.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
isp1760-if.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
isp1760-regs.h USB: isp1760: Remove redundant license text 2017-11-07 15:45:01 +01:00
isp1760-udc.c usb: isp1760: Use kasprintf 2018-03-09 09:40:21 -08:00
isp1760-udc.h USB: isp1760: Remove redundant license text 2017-11-07 15:45:01 +01:00
Kconfig
Makefile USB: add SPDX identifiers to all remaining Makefiles 2017-11-07 15:53:48 +01:00