]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
soc/tegra: pmc: Print out domain name when reset fails to acquire
authorDmitry Osipenko <digetx@gmail.com>
Tue, 2 Mar 2021 12:25:01 +0000 (15:25 +0300)
committerThierry Reding <treding@nvidia.com>
Fri, 26 Mar 2021 12:10:25 +0000 (13:10 +0100)
Print out domain name when reset fails to acquire for debugging purposes
and to make formatting of GENPD errors consistent in the driver.

Tested-by: Peter Geis <pgwipeout@gmail.com> # Ouya T30
Tested-by: Nicolas Chauvet <kwizart@gmail.com> # PAZ00 T20 and TK1 T124
Tested-by: Matt Merhar <mattmerhar@protonmail.com> # Ouya T30
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/soc/tegra/pmc.c

index 8245fbadc938abaa4f797ef2da2d78caba06641d..6bd22359d4113da6bd1f6f8bda8923533c13aae4 100644 (file)
@@ -890,7 +890,8 @@ static int tegra_genpd_power_off(struct generic_pm_domain *domain)
 
        err = reset_control_acquire(pg->reset);
        if (err < 0) {
-               pr_err("failed to acquire resets: %d\n", err);
+               dev_err(dev, "failed to acquire resets for PM domain %s: %d\n",
+                       pg->genpd.name, err);
                return err;
        }