UPSTREAM: PCI: rockchip: improve the training polling code
authorShawn Lin <shawn.lin@rock-chips.com>
Wed, 18 Jan 2017 03:03:17 +0000 (11:03 +0800)
committerShawn Lin <shawn.lin@rock-chips.com>
Sun, 5 Feb 2017 02:09:54 +0000 (10:09 +0800)
commita414768a12fe95fe4f337e0f0c3414d64989e512
tree692c84012593a1eefe39f164d17bc4b8be3a6b54
parentf662f0e62417d66d9ae4ca40abf9f0309d266746
UPSTREAM: PCI: rockchip: improve the training polling code

Use the readl_poll_timeout instead of open coding them.

Change-Id: I68e801d395d3258a8a18ead2e18c2c479625d1fa
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
(cherry picked from git.kernel.org/cgit/linux/kernel/git/helgaas/pci.git
commit 7faebda21d573a6889bab1e0100ed4092a5a4716)
drivers/pci/host/pcie-rockchip.c