PCI: mediatek: Use readl_poll_timeout() to wait for Gen2 training
authorRyder Lee <ryder.lee@mediatek.com>
Thu, 10 Aug 2017 06:34:54 +0000 (14:34 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 30 Aug 2017 13:23:55 +0000 (08:23 -0500)
commite10b7a184ccf883a456c8683fa2e53eddd3aeb9c
tree8191e1844128b43883c44232b51e957154bf26b5
parent608fcac7ce31b9644bf0e71810f5a033693c17b0
PCI: mediatek: Use readl_poll_timeout() to wait for Gen2 training

Wait for Gen2 training with readl_poll_timeout(), and simplify the hardware
assert logical by merging it into a new mtk_pcie_startup_port() interface.

Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Honghui Zhang <honghui.zhang@mediatek.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/pcie-mediatek.c