diff options
author | Hou Zhiqiang <Zhiqiang.Hou@nxp.com> | 2017-08-28 18:53:01 +0800 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2017-08-29 16:41:17 -0500 |
commit | b015b37e6693de515982452eebd6a9d19201f0fe (patch) | |
tree | d030ad33399402fb37fb67ec9387d0e6b849bf60 /drivers/pci/dwc/pcie-artpec6.c | |
parent | c3f909398827b03fad9391951b3daa4a11dcf663 (diff) | |
download | op-kernel-dev-b015b37e6693de515982452eebd6a9d19201f0fe.zip op-kernel-dev-b015b37e6693de515982452eebd6a9d19201f0fe.tar.gz |
PCI: artpec6: Stop enabling writes to DBI read-only registers
Previously we enabled writes to the DBI read-only registers so the Class
Code fix in dw_pcie_setup_rc() would work. But now dw_pcie_setup_rc()
enables write permission itself, so we don't need to do it here.
Stop enabling writes to the DBI read-only registers.
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Roy Zang <tie-fei.zang@freescale.com>
Diffstat (limited to 'drivers/pci/dwc/pcie-artpec6.c')
-rw-r--r-- | drivers/pci/dwc/pcie-artpec6.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/pci/dwc/pcie-artpec6.c b/drivers/pci/dwc/pcie-artpec6.c index 5d81f1d..d153491 100644 --- a/drivers/pci/dwc/pcie-artpec6.c +++ b/drivers/pci/dwc/pcie-artpec6.c @@ -141,12 +141,6 @@ static int artpec6_pcie_establish_link(struct artpec6_pcie *artpec6_pcie) artpec6_pcie_writel(artpec6_pcie, PCIECFG, val); usleep_range(100, 200); - /* - * Enable writing to config regs. This is required as the Synopsys - * driver changes the class code. That register needs DBI write enable. - */ - dw_pcie_writel_dbi(pci, MISC_CONTROL_1_OFF, DBI_RO_WR_EN); - /* setup root complex */ dw_pcie_setup_rc(pp); |