OSDN Git Service

rpmsg: smd: Use announce_create to process any receive work
authorBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 27 Mar 2018 21:06:43 +0000 (14:06 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 28 Mar 2018 04:54:37 +0000 (21:54 -0700)
commit0d72038c303c616a63415a07366f916b5edc3830
treed60d29f1df47131c6c1592e5cac21e664276e6d6
parent7586516ca043d55ed1ca563df72bc216c948cad4
rpmsg: smd: Use announce_create to process any receive work

It is possible that incoming data arrives before the client driver has
reached a point in the probe method where adequate context for handling
the incoming message has been established.

In the event that the client's callback function returns an error the
message will be left on the FIFO and by invoking the receive handler
after the device has been probed the message will be picked off the FIFO
and the callback invoked again.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/rpmsg/qcom_smd.c