PCI: altera: Fix altera_pcie_link_is_up()
authorLey Foon Tan <lftan@altera.com>
Wed, 2 Mar 2016 09:43:07 +0000 (17:43 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 11 Mar 2016 18:14:39 +0000 (12:14 -0600)
commiteff31f4002c4e25b9b8c39d0a3a551c6c64c77e8
treeed1034d5b9b3dc8bced688ec31df47ecc1af7581
parent92e963f50fc74041b5e9e744c330dca48e04f08d
PCI: altera: Fix altera_pcie_link_is_up()

Originally altera_pcie_link_is_up() decided the link was up if any of the
low four bits of the LTSSM register were set.  But the link is only up if
the LTSSM state is L0, so check for that exact value.

[bhelgaas: changelog]
Signed-off-by: Ley Foon Tan <lftan@altera.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/pcie-altera.c