We have the generic PM domain support for Tegra SoCs now. So remove the
duplicated power sequence here.

Signed-off-by: Vince Hsu <[email protected]>
---
 drivers/pci/host/pci-tegra.c | 20 --------------------
 1 file changed, 20 deletions(-)

diff --git a/drivers/pci/host/pci-tegra.c b/drivers/pci/host/pci-tegra.c
index 6f9c29fa70e7..22ef3cd61aa8 100644
--- a/drivers/pci/host/pci-tegra.c
+++ b/drivers/pci/host/pci-tegra.c
@@ -980,12 +980,6 @@ static void tegra_pcie_power_off(struct tegra_pcie *pcie)
        if (err < 0)
                dev_warn(pcie->dev, "failed to power off PHY: %d\n", err);
 
-       reset_control_assert(pcie->pcie_xrst);
-       reset_control_assert(pcie->afi_rst);
-       reset_control_assert(pcie->pex_rst);
-
-       tegra_powergate_power_off(TEGRA_POWERGATE_PCIE);
-
        err = regulator_bulk_disable(pcie->num_supplies, pcie->supplies);
        if (err < 0)
                dev_warn(pcie->dev, "failed to disable regulators: %d\n", err);
@@ -996,25 +990,11 @@ static int tegra_pcie_power_on(struct tegra_pcie *pcie)
        const struct tegra_pcie_soc_data *soc = pcie->soc_data;
        int err;
 
-       reset_control_assert(pcie->pcie_xrst);
-       reset_control_assert(pcie->afi_rst);
-       reset_control_assert(pcie->pex_rst);
-
-       tegra_powergate_power_off(TEGRA_POWERGATE_PCIE);
-
        /* enable regulators */
        err = regulator_bulk_enable(pcie->num_supplies, pcie->supplies);
        if (err < 0)
                dev_err(pcie->dev, "failed to enable regulators: %d\n", err);
 
-       err = tegra_powergate_sequence_power_up(TEGRA_POWERGATE_PCIE,
-                                               pcie->pex_clk,
-                                               pcie->pex_rst);
-       if (err) {
-               dev_err(pcie->dev, "powerup sequence failed: %d\n", err);
-               return err;
-       }
-
        reset_control_deassert(pcie->afi_rst);
 
        err = clk_prepare_enable(pcie->afi_clk);
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to