Loading
pci: msm: Move rpmsg lock after command completion
If multiple rpmsg are sent, it is possible there will be a
mismatch of completions. If requester sends rpmsg A and B,
it is possible the completer sees only rpmsg B. Once completer
sends ACK/NACK for rpmsg B, the requester may interpret, it is
for rpmsg A if the timeout for it has not expired. Therefore,
serialize the send of rpmsg and its completion to avoid this
possible race by moving rpmsg lock after command completion.
Change-Id: Id2ac8a03da2dd941ac9ea9d5c556a108af5faecd
Signed-off-by:
Hemant Kumar <hemantk@codeaurora.org>