kernel_samsung_a53x/drivers/rpmsg
Bjorn Andersson febe503319 rpmsg: glink: Propagate TX failures in intentless mode as well
commit 7a68f9fa97357a0f2073c9c31ed4101da4fce93e upstream.

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: 8956927faed3 ("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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-12-17 13:24:21 +01:00
..
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtk_rpmsg.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom_glink_native.c rpmsg: glink: Propagate TX failures in intentless mode as well 2024-12-17 13:24:21 +01:00
qcom_glink_native.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom_glink_rpm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom_glink_smem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom_glink_ssr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom_smd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rpmsg_char.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rpmsg_core.c rpmsg: Fix possible refcount leak in rpmsg_register_device_override() 2024-11-18 10:58:46 +01:00
rpmsg_internal.h rpmsg: Fix calling device_lock() on non-initialized device 2024-11-18 10:58:46 +01:00
virtio_rpmsg_bus.c rpmsg: virtio: Free driver_override when rpmsg_remove() 2024-11-18 12:12:56 +01:00