platform: msm_shared: Wait until RPM has written the packet in SMEM

SMD driver uses a fixed delay before reading RPM response, but its
not gauranteed that RPM would respond in this fixed time. This leads
to race conditions where appsbl continues assuming RPM has updated
the response buffer. To fix this busy-wait until RPM has update the
data in SMEM. Also fix the updates to data read and state updated
flags. data_read should be set only for send buffer channel and
state_udpated should be set only when there is if_sigs change.

CRs-Fixed: 708794
Change-Id: I343f40bfee9e74a77bd79e455f900880d4c9b5e5
2 files changed