diff options
| author | Nishanth Menon <[email protected]> | 2019-08-01 19:08:24 +0530 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2019-08-12 13:33:38 -0400 |
| commit | 71cd80af863945e81f468c22e5e1afb06eba75cd (patch) | |
| tree | 777a228a30aa8ccd85e9f89ab3fcf50c9678b7dd /drivers | |
| parent | 60df809f626016d9992a7e894799a675c61d4d4b (diff) | |
power: domain: ti-sci-power-domain: Add device ID info to get/set_device failure
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 <[email protected]>
Signed-off-by: Lokesh Vutla <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/power/domain/ti-sci-power-domain.c | 8 |
1 files 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 b9cd37b6129..4c4351d2d99 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; } |
