Skip to contentSkip to conversation

power: domain: ti-sci-power-domain: Add device ID info to get/set_device failure

PATCH New Lokesh Vutla 2 participants 2 messages Aug 1, 2019 – Aug 13, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 power: domain: ti-sci-power-domain: Add device ID info to get/set_device failure

From: Nishanth Menon <[email protected]>

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.

---
 drivers/power/domain/ti-sci-power-domain.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/power/domain/ti-sci-power-domain.c +4 -4
index b9cd37b612..4c4351d2d9 100644
@@ -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;
 }
Signature · 1 line
2.22.0
#1 lore raw

PATCH 1/1 power: domain: ti-sci-power-domain: Add device ID info to get/set_device failure

Quoted 10 lines · Lokesh Vutla

From: Nishanth Menon <[email protected]>

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.

Applied to u-boot/master, thanks!

Signature · 8 lines
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>