diff options
author | Hou Zhiqiang <Zhiqiang.Hou@nxp.com> | 2017-08-28 06:53:01 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2017-08-29 17:38:49 -0400 |
commit | c3f909398827b03fad9391951b3daa4a11dcf663 (patch) | |
tree | 51499037de75ab2243cf661c726df2a72038c060 | |
parent | d91dfe5054d4f2c424bd70ca34fc3328ee179f20 (diff) |
PCI: layerscape: Remove unnecessary class code fixup
Now that the Class Code fixup in dw_pcie_setup_rc() works, remove the fixup
from the Layerscape driver.
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>
-rw-r--r-- | drivers/pci/dwc/pci-layerscape.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/pci/dwc/pci-layerscape.c b/drivers/pci/dwc/pci-layerscape.c index 627e2ed48090..3f53826b127e 100644 --- a/drivers/pci/dwc/pci-layerscape.c +++ b/drivers/pci/dwc/pci-layerscape.c | |||
@@ -73,14 +73,6 @@ static void ls_pcie_clear_multifunction(struct ls_pcie *pcie) | |||
73 | iowrite8(PCI_HEADER_TYPE_BRIDGE, pci->dbi_base + PCI_HEADER_TYPE); | 73 | iowrite8(PCI_HEADER_TYPE_BRIDGE, pci->dbi_base + PCI_HEADER_TYPE); |
74 | } | 74 | } |
75 | 75 | ||
76 | /* Fix class value */ | ||
77 | static void ls_pcie_fix_class(struct ls_pcie *pcie) | ||
78 | { | ||
79 | struct dw_pcie *pci = pcie->pci; | ||
80 | |||
81 | iowrite16(PCI_CLASS_BRIDGE_PCI, pci->dbi_base + PCI_CLASS_DEVICE); | ||
82 | } | ||
83 | |||
84 | /* Drop MSG TLP except for Vendor MSG */ | 76 | /* Drop MSG TLP except for Vendor MSG */ |
85 | static void ls_pcie_drop_msg_tlp(struct ls_pcie *pcie) | 77 | static void ls_pcie_drop_msg_tlp(struct ls_pcie *pcie) |
86 | { | 78 | { |
@@ -145,7 +137,6 @@ static int ls_pcie_host_init(struct pcie_port *pp) | |||
145 | ls_pcie_disable_outbound_atus(pcie); | 137 | ls_pcie_disable_outbound_atus(pcie); |
146 | 138 | ||
147 | dw_pcie_dbi_ro_wr_en(pci); | 139 | dw_pcie_dbi_ro_wr_en(pci); |
148 | ls_pcie_fix_class(pcie); | ||
149 | ls_pcie_clear_multifunction(pcie); | 140 | ls_pcie_clear_multifunction(pcie); |
150 | dw_pcie_dbi_ro_wr_dis(pci); | 141 | dw_pcie_dbi_ro_wr_dis(pci); |
151 | 142 | ||