ata: ahci_tegra: call tegra_powergate_power_off only when PM domain is not present
This patch adds check to call legacy power domain API
tegra_powergate_power_off() only when PM domain is not present.
Fixes: 868ed7311c
("ata: ahci_tegra: Add AHCI support for Tegra186")
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/1617915315-13639-2-git-send-email-skomatineni@nvidia.com
Signed-off-by: Sowjanya Komatineni <skomatineni@nvidia.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
Родитель
868ed7311c
Коммит
8b625d01fd
|
@ -268,6 +268,7 @@ static int tegra_ahci_power_on(struct ahci_host_priv *hpriv)
|
|||
disable_power:
|
||||
clk_disable_unprepare(tegra->sata_clk);
|
||||
|
||||
if (!tegra->pdev->dev.pm_domain)
|
||||
tegra_powergate_power_off(TEGRA_POWERGATE_SATA);
|
||||
|
||||
disable_regulators:
|
||||
|
@ -287,6 +288,7 @@ static void tegra_ahci_power_off(struct ahci_host_priv *hpriv)
|
|||
reset_control_assert(tegra->sata_cold_rst);
|
||||
|
||||
clk_disable_unprepare(tegra->sata_clk);
|
||||
if (!tegra->pdev->dev.pm_domain)
|
||||
tegra_powergate_power_off(TEGRA_POWERGATE_SATA);
|
||||
|
||||
regulator_bulk_disable(tegra->soc->num_supplies, tegra->supplies);
|
||||
|
|
Загрузка…
Ссылка в новой задаче