diff options
Diffstat (limited to 'drivers/pci/controller/dwc')
-rw-r--r-- | drivers/pci/controller/dwc/pci-imx6.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/pci/controller/dwc/pci-imx6.c b/drivers/pci/controller/dwc/pci-imx6.c index 2cbef2d7c207..88af6bff945f 100644 --- a/drivers/pci/controller/dwc/pci-imx6.c +++ b/drivers/pci/controller/dwc/pci-imx6.c | |||
@@ -81,8 +81,6 @@ struct imx6_pcie { | |||
81 | #define PCIE_PL_PFLR_FORCE_LINK (1 << 15) | 81 | #define PCIE_PL_PFLR_FORCE_LINK (1 << 15) |
82 | #define PCIE_PHY_DEBUG_R0 (PL_OFFSET + 0x28) | 82 | #define PCIE_PHY_DEBUG_R0 (PL_OFFSET + 0x28) |
83 | #define PCIE_PHY_DEBUG_R1 (PL_OFFSET + 0x2c) | 83 | #define PCIE_PHY_DEBUG_R1 (PL_OFFSET + 0x2c) |
84 | #define PCIE_PHY_DEBUG_R1_XMLH_LINK_IN_TRAINING (1 << 29) | ||
85 | #define PCIE_PHY_DEBUG_R1_XMLH_LINK_UP (1 << 4) | ||
86 | 84 | ||
87 | #define PCIE_PHY_CTRL (PL_OFFSET + 0x114) | 85 | #define PCIE_PHY_CTRL (PL_OFFSET + 0x114) |
88 | #define PCIE_PHY_CTRL_DATA_LOC 0 | 86 | #define PCIE_PHY_CTRL_DATA_LOC 0 |
@@ -711,12 +709,6 @@ static int imx6_pcie_host_init(struct pcie_port *pp) | |||
711 | return 0; | 709 | return 0; |
712 | } | 710 | } |
713 | 711 | ||
714 | static int imx6_pcie_link_up(struct dw_pcie *pci) | ||
715 | { | ||
716 | return dw_pcie_readl_dbi(pci, PCIE_PHY_DEBUG_R1) & | ||
717 | PCIE_PHY_DEBUG_R1_XMLH_LINK_UP; | ||
718 | } | ||
719 | |||
720 | static const struct dw_pcie_host_ops imx6_pcie_host_ops = { | 712 | static const struct dw_pcie_host_ops imx6_pcie_host_ops = { |
721 | .host_init = imx6_pcie_host_init, | 713 | .host_init = imx6_pcie_host_init, |
722 | }; | 714 | }; |
@@ -749,7 +741,7 @@ static int imx6_add_pcie_port(struct imx6_pcie *imx6_pcie, | |||
749 | } | 741 | } |
750 | 742 | ||
751 | static const struct dw_pcie_ops dw_pcie_ops = { | 743 | static const struct dw_pcie_ops dw_pcie_ops = { |
752 | .link_up = imx6_pcie_link_up, | 744 | /* No special ops needed, but pcie-designware still expects this struct */ |
753 | }; | 745 | }; |
754 | 746 | ||
755 | #ifdef CONFIG_PM_SLEEP | 747 | #ifdef CONFIG_PM_SLEEP |