Skip to content

Commit d76a6ed

Browse files
paliLorenzo Pieralisi
authored andcommitted
PCI: mvebu: Update comment for PCI_EXP_LNKCAP register on emulated bridge
Reason for clearing this bit is because mvebu hw returns incorrectly this bit set to 1. Link: https://lore.kernel.org/r/20220104153529.31647-10-pali@kernel.org Signed-off-by: Pali Rohár <pali@kernel.org> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Reviewed-by: Rob Herring <robh@kernel.org>
1 parent 16038eb commit d76a6ed

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/pci/controller/pci-mvebu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,8 +546,8 @@ mvebu_pci_bridge_emul_pcie_conf_read(struct pci_bridge_emul *bridge,
546546

547547
case PCI_EXP_LNKCAP:
548548
/*
549-
* PCIe requires the clock power management capability to be
550-
* hard-wired to zero for downstream ports
549+
* PCIe requires that the Clock Power Management capability bit
550+
* is hard-wired to zero for downstream ports but HW returns 1.
551551
*/
552552
*value = mvebu_readl(port, PCIE_CAP_PCIEXP + PCI_EXP_LNKCAP) &
553553
~PCI_EXP_LNKCAP_CLKPM;

0 commit comments

Comments
 (0)