All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] power: domain: ti-sci-power-domain: Add device ID info to get/set_device failure
@ 2019-08-01 13:38 Lokesh Vutla
  2019-08-13 16:51 ` Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Lokesh Vutla @ 2019-08-01 13:38 UTC (permalink / raw)
  To: u-boot

From: Nishanth Menon <nm@ti.com>

Failure log for ti_sci_power_domain_on/off is as below:
"ti_sci_power_domain_on: get/set_device failed (-19)"

The above information is useless for debug without information
on what specific device access failed. So add that information as well.

Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
---
 drivers/power/domain/ti-sci-power-domain.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/power/domain/ti-sci-power-domain.c b/drivers/power/domain/ti-sci-power-domain.c
index b9cd37b612..4c4351d2d9 100644
--- a/drivers/power/domain/ti-sci-power-domain.c
+++ b/drivers/power/domain/ti-sci-power-domain.c
@@ -68,8 +68,8 @@ static int ti_sci_power_domain_on(struct power_domain *pd)
 		ret = dops->get_device(sci, pd->id);
 
 	if (ret)
-		dev_err(power_domain->dev, "%s: get_device failed (%d)\n",
-			__func__, ret);
+		dev_err(pd->dev, "%s: get_device(%lu) failed (%d)\n",
+			__func__, pd->id, ret);
 
 	return ret;
 }
@@ -85,8 +85,8 @@ static int ti_sci_power_domain_off(struct power_domain *pd)
 
 	ret = dops->put_device(sci, pd->id);
 	if (ret)
-		dev_err(power_domain->dev, "%s: put_device failed (%d)\n",
-			__func__, ret);
+		dev_err(pd->dev, "%s: put_device(%lu) failed (%d)\n",
+			__func__, pd->id, ret);
 
 	return ret;
 }
-- 
2.22.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH] power: domain: ti-sci-power-domain: Add device ID info to get/set_device failure
  2019-08-01 13:38 [U-Boot] [PATCH] power: domain: ti-sci-power-domain: Add device ID info to get/set_device failure Lokesh Vutla
@ 2019-08-13 16:51 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2019-08-13 16:51 UTC (permalink / raw)
  To: u-boot

On Thu, Aug 01, 2019 at 07:08:24PM +0530, Lokesh Vutla wrote:

> From: Nishanth Menon <nm@ti.com>
> 
> Failure log for ti_sci_power_domain_on/off is as below:
> "ti_sci_power_domain_on: get/set_device failed (-19)"
> 
> The above information is useless for debug without information
> on what specific device access failed. So add that information as well.
> 
> Signed-off-by: Nishanth Menon <nm@ti.com>
> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190813/2e453544/attachment.sig>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-08-13 16:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-01 13:38 [U-Boot] [PATCH] power: domain: ti-sci-power-domain: Add device ID info to get/set_device failure Lokesh Vutla
2019-08-13 16:51 ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.