aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2017-04-28 11:33:05 -0400
committerBjorn Helgaas <bhelgaas@google.com>2017-04-28 11:33:05 -0400
commit443b1b06717275a10f4b36fb6330c85b7f37281f (patch)
tree9e57a779d70975ca6345089111d34e7afd0c1221
parent24c53a66bd687a186f55f0845c08a6d073864798 (diff)
parentb8e82c1bdd2871dc9c704502acc2ca634b51eeda (diff)
Merge branch 'pci/host-mvebu' into next
* pci/host-mvebu: PCI: mvebu: Avoid changing the SCC bit in the Link Status register
-rw-r--r--drivers/pci/host/pci-mvebu.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/pci/host/pci-mvebu.c b/drivers/pci/host/pci-mvebu.c
index cd7d51988738..266447ee8867 100644
--- a/drivers/pci/host/pci-mvebu.c
+++ b/drivers/pci/host/pci-mvebu.c
@@ -752,10 +752,11 @@ static int mvebu_sw_pci_bridge_write(struct mvebu_pcie_port *port,
752 * If the mask is 0xffff0000, then we only want to write 752 * If the mask is 0xffff0000, then we only want to write
753 * the link control register, rather than clearing the 753 * the link control register, rather than clearing the
754 * RW1C bits in the link status register. Mask out the 754 * RW1C bits in the link status register. Mask out the
755 * status register bits. 755 * RW1C status register bits.
756 */ 756 */
757 if (mask == 0xffff0000) 757 if (mask == 0xffff0000)
758 value &= 0xffff; 758 value &= ~((PCI_EXP_LNKSTA_LABS |
759 PCI_EXP_LNKSTA_LBMS) << 16);
759 760
760 mvebu_writel(port, value, PCIE_CAP_PCIEXP + PCI_EXP_LNKCTL); 761 mvebu_writel(port, value, PCIE_CAP_PCIEXP + PCI_EXP_LNKCTL);
761 break; 762 break;