]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rpmsg: qcom_smd: Improve error handling for qcom_smd_parse_edge
authorLuca Weiss <luca@lucaweiss.eu>
Wed, 26 Mar 2025 18:09:29 +0000 (19:09 +0100)
committerBjorn Andersson <andersson@kernel.org>
Tue, 13 May 2025 15:37:08 +0000 (10:37 -0500)
commit75499b3232b6b9194de3cce4ccd60e49c6b70cc0
treeab022ecf72b1af5633aa37bd8d0172392bd23f19
parent3a70b945d3da5825b4d7ce7d1b941055a4486016
rpmsg: qcom_smd: Improve error handling for qcom_smd_parse_edge

When the mailbox driver has not probed yet, the error message "failed to
parse smd edge" is just going to confuse users, so improve the error
prints a bit.

Cover the last remaining exits from qcom_smd_parse_edge with proper
error prints, especially the one for the mbox_chan deserved
dev_err_probe to handle EPROBE_DEFER nicely. And add one for ipc_regmap
also to be complete.

With this done, we can remove the outer print completely.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Luca Weiss <luca@lucaweiss.eu>
Link: https://lore.kernel.org/r/20250326-apcs-mboxes-v3-1-e20f39e125f2@lucaweiss.eu
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/rpmsg/qcom_smd.c