From: Dmitry Osipenko Date: Tue, 2 Mar 2021 12:25:01 +0000 (+0300) Subject: soc/tegra: pmc: Print out domain name when reset fails to acquire X-Git-Tag: v5.13-rc1~168^2~15^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=366d7c643a8a9db652341e314b33d3fc80595e6c;p=thirdparty%2Fkernel%2Flinux.git soc/tegra: pmc: Print out domain name when reset fails to acquire 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 # Ouya T30 Tested-by: Nicolas Chauvet # PAZ00 T20 and TK1 T124 Tested-by: Matt Merhar # Ouya T30 Signed-off-by: Dmitry Osipenko Signed-off-by: Thierry Reding --- diff --git a/drivers/soc/tegra/pmc.c b/drivers/soc/tegra/pmc.c index 8245fbadc938a..6bd22359d4113 100644 --- a/drivers/soc/tegra/pmc.c +++ b/drivers/soc/tegra/pmc.c @@ -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; }