diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2016-01-25 23:50:02 +0100 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2016-01-25 23:50:02 +0100 |
commit | 4d107d3b5a686b5834e533a00b73bf7b1cf59df7 (patch) | |
tree | dc851256d8c34ef193b7fa5f75d7c7e0b7b7da9e /arch/blackfin/include | |
parent | PCI: imx6: Remove broken Gen2 workaround (diff) | |
download | linux-4d107d3b5a686b5834e533a00b73bf7b1cf59df7.tar.xz linux-4d107d3b5a686b5834e533a00b73bf7b1cf59df7.zip |
PCI: imx6: Move link up check into imx6_pcie_wait_for_link()
imx6_pcie_link_up() previously used usleep_range() to wait for the link to
come up. Since it may be called while holding the config spinlock, the
sleep causes a "BUG: scheduling while atomic" error.
Instead of waiting for the link to come up in imx6_pcie_link_up(), do the
waiting in imx6_pcie_wait_for_link(), where we're not holding a lock and
sleeping is allowed.
[bhelgaas: changelog, references to bugzilla and f95d3ae77191]
Link: https://bugzilla.kernel.org/show_bug.cgi?id=100031
Fixes: f95d3ae77191 ("PCI: imx6: Wait for retraining")
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'arch/blackfin/include')
0 files changed, 0 insertions, 0 deletions