Re: [PATCH v2] PCI: imx6:don't sleep in atomic context

2016-01-05 Thread Bjorn Helgaas
On Wed, Dec 02, 2015 at 01:13:16PM +0530, Sanjeev Sharma wrote: > From: David Mueller > > If additional PCIe switch get connected between the > host and the NIC,the kernel crashes with "BUG: > scheduling while atomic". To handle this we need to > call mdelay() instead of usleep_range(). > > This

[PATCH v2] PCI: imx6:don't sleep in atomic context

2015-12-01 Thread Sanjeev Sharma
From: David Mueller If additional PCIe switch get connected between the host and the NIC,the kernel crashes with "BUG: scheduling while atomic". To handle this we need to call mdelay() instead of usleep_range(). This is currently called from atomic context through pci_config_{read,write). For m