rpmsg: glink: Fail qcom_glink_tx() once remove has been initiated
authorBjorn Andersson <quic_bjorande@quicinc.com>
Mon, 13 Feb 2023 15:52:14 +0000 (07:52 -0800)
committerBjorn Andersson <andersson@kernel.org>
Tue, 14 Feb 2023 16:19:38 +0000 (08:19 -0800)
commit9c96bacf1af51bc71898f31e025f08338c6ca4da
treec2daaa7ef80fa8e00961641c381bcd6797f9d215
parentf424d1cbe8c7ef78a4b639502fa9904c4198387b
rpmsg: glink: Fail qcom_glink_tx() once remove has been initiated

Upon removing the glink edge, communication is at best one-way. This
means that the very common scenario of glink requesting intents will not
be possible to serve.

Typically a successful transmission results in the client waiting for a
response, with some timeout and a mechanism for aborting that timeout.

Because of this, once the glink edge is defunct once removal is
commenced it's better to fail transmissions fast.

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/20230213155215.1237059-6-quic_bjorande@quicinc.com
drivers/rpmsg/qcom_glink_native.c