Follow up patch to Tegra186 AHCI support patch series
Subsystems (2)
PATCH v2 1/1 Follow up patch to Tegra186 AHCI support patch series
This includes a follow up patch to Tegra186 AHCI support patch series
https://lore.kernel.org/patchwork/cover/1408752/
Delta between patch versions:
[v2]: v1 has missing PM domain check in error path. Fixed in v2.
Sowjanya Komatineni (1):
ata: ahci_tegra: call tegra_powergate_power_off only when PM domain is
not present
drivers/ata/ahci_tegra.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
Signature · 1 line
2.7.4
PATCH v2 1/1 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.
This is a follow-up patch to Tegra186 AHCI support patch series.
--- drivers/ata/ahci_tegra.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/ata/ahci_tegra.c +4 -2
@@ -268,7 +268,8 @@ static int tegra_ahci_power_on(struct ahci_host_priv *hpriv) disable_power:clk_disable_unprepare (tegra->sata_clk); -tegra_powergate_power_off (TEGRA_POWERGATE_SATA ); +if (!tegra->pdev->dev.pm_domain) +tegra_powergate_power_off (TEGRA_POWERGATE_SATA ); disable_regulators:regulator_bulk_disable (tegra->soc->num_supplies, tegra->supplies);
@@ -287,7 +288,8 @@ static void tegra_ahci_power_off(struct ahci_host_priv *hpriv)reset_control_assert (tegra->sata_cold_rst);clk_disable_unprepare (tegra->sata_clk); -tegra_powergate_power_off (TEGRA_POWERGATE_SATA ); +if (!tegra->pdev->dev.pm_domain) +tegra_powergate_power_off (TEGRA_POWERGATE_SATA );regulator_bulk_disable (tegra->soc->num_supplies, tegra->supplies); }
Signature · 1 line
2.7.4
Re: [PATCH v2] ata: ahci_tegra: call tegra_powergate_power_off only when PM domain is not present
08.04.2021 23:55, Sowjanya Komatineni пишет:
Quoted 24 lines
This patch adds check to call legacy power domain API
tegra_powergate_power_off()only when PM domain is not present.This is a follow-up patch to Tegra186 AHCI support patch series.
--- drivers/ata/ahci_tegra.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)drivers/ata/ahci_tegra.c +2
-1@@ -268,7 +268,8 @@ static int tegra_ahci_power_on(struct ahci_host_priv *hpriv) disable_power:clk_disable_unprepare (tegra->sata_clk); -tegra_powergate_power_off (TEGRA_POWERGATE_SATA ); +if (!tegra->pdev->dev.pm_domain) +tegra_powergate_power_off (TEGRA_POWERGATE_SATA ); disable_regulators:regulator_bulk_disable (tegra->soc->num_supplies, tegra->supplies);
drivers/ata/ahci_tegra.c static void tegra_ahci_power_off(struct ahci_host_priv *hpriv) · line 295
Quoted 9 lines
drivers/ata/ahci_tegra.c +2
-1@@ -287,7 +288,8 @@ static void tegra_ahci_power_off(struct ahci_host_priv *hpriv)reset_control_assert (tegra->sata_cold_rst);clk_disable_unprepare (tegra->sata_clk); -tegra_powergate_power_off (TEGRA_POWERGATE_SATA ); +if (!tegra->pdev->dev.pm_domain) +tegra_powergate_power_off (TEGRA_POWERGATE_SATA );regulator_bulk_disable (tegra->soc->num_supplies, tegra->supplies); }
Looks good, thank you.
Re: [PATCH v2] ata: ahci_tegra: call tegra_powergate_power_off only when PM domain is not present
In reply to Sowjanya KomatineniQuoted 7 lines · Sowjanya Komatineni
This patch adds check to call legacy power domain API
tegra_powergate_power_off()only when PM domain is not present.This is a follow-up patch to Tegra186 AHCI support patch series.
--- drivers/ata/ahci_tegra.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
Jens Axboe
AppliedRe: [PATCH v2] ata: ahci_tegra: call tegra_powergate_power_off only when PM domain is not present
In reply to Sowjanya KomatineniQuoted 2 lines · Sowjanya Komatineni
This patch adds check to call legacy power domain API
tegra_powergate_power_off()only when PM domain is not present.
Applied, and added a Fixes line.
Signature · 1 line
Jens Axboe