diff options
author | Jia-Ju Bai <baijiaju1990@gmail.com> | 2018-04-10 21:04:06 +0800 |
---|---|---|
committer | Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> | 2018-05-08 11:13:42 +0100 |
commit | 9f96b9b7d836a71733f83ba813d9e0c658090c5d (patch) | |
tree | e80d91d48151b44c07d58f3d4b02e6b91ef01fb8 /drivers/clk | |
parent | 60cc43fc888428bb2f18f08997432d426a243338 (diff) |
PCI: endpoint: Replace mdelay with usleep_range() in pci_epf_test_write()
pci_epf_test_write() is never called in atomic context.
The call chain ending up at pci_epf_test_write() is:
[1] pci_epf_test_write() <- pci_epf_test_cmd_handler()
pci_epf_test_cmd_handler() is set as a parameter of INIT_DELAYED_WORK()
in pci_epf_test_probe().
This function is not called in atomic context.
Despite never getting called from atomic context, pci_epf_test_write()
calls mdelay() to busy wait.
This is not necessary and can be replaced with usleep_range() to
avoid busy waiting.
Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
[lorenzo.pieralisi@arm.com: updated commit log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'drivers/clk')
0 files changed, 0 insertions, 0 deletions