mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-01 08:59:33 +00:00
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 <nm@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
This commit is contained in:
parent
60df809f62
commit
71cd80af86
1 changed files with 4 additions and 4 deletions
|
@ -68,8 +68,8 @@ static int ti_sci_power_domain_on(struct power_domain *pd)
|
||||||
ret = dops->get_device(sci, pd->id);
|
ret = dops->get_device(sci, pd->id);
|
||||||
|
|
||||||
if (ret)
|
if (ret)
|
||||||
dev_err(power_domain->dev, "%s: get_device failed (%d)\n",
|
dev_err(pd->dev, "%s: get_device(%lu) failed (%d)\n",
|
||||||
__func__, ret);
|
__func__, pd->id, ret);
|
||||||
|
|
||||||
return 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);
|
ret = dops->put_device(sci, pd->id);
|
||||||
if (ret)
|
if (ret)
|
||||||
dev_err(power_domain->dev, "%s: put_device failed (%d)\n",
|
dev_err(pd->dev, "%s: put_device(%lu) failed (%d)\n",
|
||||||
__func__, ret);
|
__func__, pd->id, ret);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue