linux-stable/drivers/rpmsg
Bjorn Andersson d29faefa8d rpmsg: glink: Propagate TX failures in intentless mode as well
[ Upstream commit 7a68f9fa97 ]

As support for splitting transmission over several messages using
TX_DATA_CONT was introduced it does not immediately return the return
value of qcom_glink_tx().

The result is that in the intentless case (i.e. intent == NULL), the
code will continue to send all additional chunks. This is wasteful, and
it's possible that the send operation could incorrectly indicate
success, if the last chunk fits in the TX fifo.

Fix the condition.

Fixes: 8956927fae ("rpmsg: glink: Add TX_DATA_CONT command while sending")
Reviewed-by: Chris Lew <quic_clew@quicinc.com>
Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230418163018.785524-2-quic_bjorande@quicinc.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-11 23:03:16 +09:00
..
Kconfig
Makefile
mtk_rpmsg.c
qcom_glink_native.c rpmsg: glink: Propagate TX failures in intentless mode as well 2023-05-11 23:03:16 +09:00
qcom_glink_native.h
qcom_glink_rpm.c
qcom_glink_smem.c
qcom_glink_ssr.c rpmsg: qcom: correct kerneldoc 2022-07-16 22:13:32 -05:00
qcom_smd.c rpmsg: qcom_smd: Fix refcount leak in qcom_smd_parse_edge 2022-07-16 22:15:40 -05:00
rpmsg_char.c rpmsg: char: Avoid double destroy of default endpoint 2022-09-21 11:21:33 -06:00
rpmsg_char.h
rpmsg_core.c rpmsg: Strcpy is not safe, use strscpy_pad() instead 2022-06-24 11:37:00 -06:00
rpmsg_ctrl.c
rpmsg_internal.h rpmsg: Fix parameter naming for announce_create/destroy ops 2022-06-24 10:58:12 -06:00
rpmsg_ns.c
virtio_rpmsg_bus.c