ti: k3: drivers: ti_sci: Clear receive queue before transmitting
authorAndrew F. Davis <afd@ti.com>
Fri, 4 Jan 2019 18:49:16 +0000 (12:49 -0600)
committerAndrew F. Davis <afd@ti.com>
Mon, 21 Jan 2019 19:33:36 +0000 (13:33 -0600)
commit73522f0087cee4d3e290356e4ee6f2de5c516be4
tree7029ed3e4fb5ce5af59b7fce02a96226c93748ca
parent2004552e62cb178a2b633e84371e459955aad150
ti: k3: drivers: ti_sci: Clear receive queue before transmitting

Send and receive currently must be be serialized, any message already in
the receive queue when a new message is to be sent will cause a mismatch
with the expected response from this new message. Clear out all messages
from the response queue before sending a new request.

Signed-off-by: Andrew F. Davis <afd@ti.com>
Acked-by: Nishanth Menon <nm@ti.com>
plat/ti/k3/common/drivers/ti_sci/ti_sci.c