summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2021-11-25 00:04:55 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-12-01 09:27:41 +0100
commit5973eb634d04bea50db26d644a18a46cd3de3dfa (patch)
tree38277f4cebff856063b5928162e3a720892e9163 /firmware
parent3f157850460a45b24acf8541377bd3edbd49acda (diff)
downloadlinux-stable-5973eb634d04bea50db26d644a18a46cd3de3dfa.tar.gz
linux-stable-5973eb634d04bea50db26d644a18a46cd3de3dfa.tar.bz2
linux-stable-5973eb634d04bea50db26d644a18a46cd3de3dfa.zip
PCI: aardvark: Fix checking for link up via LTSSM state
commit 661c399a651c11aaf83c45cbfe0b4a1fb7bc3179 upstream. Current implementation of advk_pcie_link_up() is wrong as it marks also link disabled or hot reset states as link up. Fix it by marking link up only to those states which are defined in PCIe Base specification 3.0, Table 4-14: Link Status Mapped to the LTSSM. To simplify implementation, Define macros for every LTSSM state which aardvark hardware can return in CFG_REG register. Fix also checking for link training according to the same Table 4-14. Define a new function advk_pcie_link_training() for this purpose. Link: https://lore.kernel.org/r/20211005180952.6812-13-kabel@kernel.org Fixes: 8c39d710363c ("PCI: aardvark: Add Aardvark PCI host controller driver") Signed-off-by: Pali Rohár <pali@kernel.org> Signed-off-by: Marek Behún <kabel@kernel.org> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Reviewed-by: Marek Behún <kabel@kernel.org> Cc: stable@vger.kernel.org Cc: Remi Pommarel <repk@triplefau.lt> Signed-off-by: Marek Behún <kabel@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions