mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
soc: qcom: pmic_glink: add an error log when pmic_glink_write fails
Add an error log in pmic_glink_write when rpmsg_trysend fails to send the message for a client. It will be useful for debugging. Change-Id: I4d3e72fdf64f1df6caad10840e21517c393530b7 Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
This commit is contained in:
parent
9eaefd9787
commit
db23351bf7
1 changed files with 4 additions and 0 deletions
|
|
@ -314,6 +314,10 @@ int pmic_glink_write(struct pmic_glink_client *client, void *data,
|
|||
rc = rpmsg_trysend(client->pgdev->rpdev->ept, data, len);
|
||||
mutex_unlock(&client->lock);
|
||||
|
||||
if (rc < 0)
|
||||
pr_err("Failed to send data [%*ph] for client %s, rc=%d\n",
|
||||
len, data, client->name, rc);
|
||||
|
||||
if (!rc && client->pgdev->log_enable) {
|
||||
struct pmic_glink_hdr *hdr = data;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue