mirror of
https://github.com/torvalds/linux.git
synced 2026-07-30 19:21:28 +02:00
net: qrtr: smd: Add error message for registration failure
Add error prints around qrtr endpoint registration fails. Adjust the prints so more information error information is available during early bootup. Change-Id: I0cf41144c6b4e8d8de0c91914e46155bbe54c6c5 Signed-off-by: Chris Lew <quic_clew@quicinc.com>
This commit is contained in:
parent
4166c80b23
commit
750c23e102
|
|
@ -23,8 +23,10 @@ static int qcom_smd_qrtr_callback(struct rpmsg_device *rpdev,
|
|||
struct qrtr_smd_dev *qdev = dev_get_drvdata(&rpdev->dev);
|
||||
int rc;
|
||||
|
||||
if (!qdev)
|
||||
if (!qdev) {
|
||||
pr_err("%s: Not ready\n", __func__);
|
||||
return -EAGAIN;
|
||||
}
|
||||
|
||||
rc = qrtr_endpoint_post(&qdev->ep, data, len);
|
||||
if (rc == -EINVAL) {
|
||||
|
|
@ -70,12 +72,14 @@ static int qcom_smd_qrtr_probe(struct rpmsg_device *rpdev)
|
|||
qdev->ep.xmit = qcom_smd_qrtr_send;
|
||||
|
||||
rc = qrtr_endpoint_register(&qdev->ep, QRTR_EP_NID_AUTO);
|
||||
if (rc)
|
||||
if (rc) {
|
||||
dev_err(qdev->dev, "endpoint register failed: %d\n", rc);
|
||||
return rc;
|
||||
}
|
||||
|
||||
dev_set_drvdata(&rpdev->dev, qdev);
|
||||
|
||||
dev_dbg(&rpdev->dev, "Qualcomm SMD QRTR driver probed\n");
|
||||
pr_info("%s: SMD QRTR driver probed\n", __func__);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user