rpmsg: glink: Return error if receive callback is not present
There may be a rx packet on channel while receive callback is
not yet register. In that case rx packet will be missed and
not delivered to glink client.
Add check for receive callback. If it is not registered return
-EAGAIN, so that this packet can be retried on next interrupt.
Change-Id: Iff0873c8eef7ecfb4382bd2f73c3386ce9e5344a
Signed-off-by:
Deepak Kumar Singh <deesin@codeaurora.org>
Loading
Please register or sign in to comment