Re: [PATCH 1/2] net: can: sja1000: Replace mdelay with usleep_range in peak_pci_probe

2018-04-25 Thread Marc Kleine-Budde
On 04/11/2018 03:42 AM, Jia-Ju Bai wrote: > peak_pci_probe() is never called in atomic context. > > peak_pci_probe() is set as ".probe" in struct pci_driver. > > Despite never getting called from atomic context, peak_pci_probe() > calls mdelay() to busily wait. > This is not necessary and can be

Re: [PATCH 1/2] net: can: sja1000: Replace mdelay with usleep_range in peak_pci_probe

2018-04-25 Thread Marc Kleine-Budde
On 04/11/2018 03:42 AM, Jia-Ju Bai wrote: > peak_pci_probe() is never called in atomic context. > > peak_pci_probe() is set as ".probe" in struct pci_driver. > > Despite never getting called from atomic context, peak_pci_probe() > calls mdelay() to busily wait. > This is not necessary and can be

[PATCH 1/2] net: can: sja1000: Replace mdelay with usleep_range in peak_pci_probe

2018-04-10 Thread Jia-Ju Bai
peak_pci_probe() is never called in atomic context. peak_pci_probe() is set as ".probe" in struct pci_driver. Despite never getting called from atomic context, peak_pci_probe() calls mdelay() to busily wait. This is not necessary and can be replaced with usleep_range() to avoid busy waiting.

[PATCH 1/2] net: can: sja1000: Replace mdelay with usleep_range in peak_pci_probe

2018-04-10 Thread Jia-Ju Bai
peak_pci_probe() is never called in atomic context. peak_pci_probe() is set as ".probe" in struct pci_driver. Despite never getting called from atomic context, peak_pci_probe() calls mdelay() to busily wait. This is not necessary and can be replaced with usleep_range() to avoid busy waiting.