Re: [PATCH v2] PCI: dwc: fix scheduling while atomic issues

2018-08-28 Thread Lorenzo Pieralisi
On Tue, Aug 21, 2018 at 02:15:12PM +0800, Jisheng Zhang wrote: > When programming inbound/outbound atu, we call usleep_range() after > each checking PCIE_ATU_ENABLE bit. Unfortunately, the atu programming > can be called in atomic context: > > inbound atu programming could be called through > pci_

Re: [PATCH v2] PCI: dwc: fix scheduling while atomic issues

2018-08-22 Thread Gustavo Pimentel
Hi Jisheng On 21/08/2018 07:15, Jisheng Zhang wrote: > When programming inbound/outbound atu, we call usleep_range() after > each checking PCIE_ATU_ENABLE bit. Unfortunately, the atu programming > can be called in atomic context: > > inbound atu programming could be called through > pci_epc_write

[PATCH v2] PCI: dwc: fix scheduling while atomic issues

2018-08-20 Thread Jisheng Zhang
When programming inbound/outbound atu, we call usleep_range() after each checking PCIE_ATU_ENABLE bit. Unfortunately, the atu programming can be called in atomic context: inbound atu programming could be called through pci_epc_write_header() =>dw_pcie_ep_write_header() =>dw_pcie_prog_inbound