1
0
Fork 0

firmware: imx: scu: intialization rx_size before sending cmd

intialization rx_size before sending cmd

Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
5.4-rM2-2.2.x-imx-squashed
Dong Aisheng 2019-07-27 21:52:22 +08:00
parent 7d1c3295eb
commit 60175674c8
1 changed files with 1 additions and 0 deletions

View File

@ -166,6 +166,7 @@ int imx_scu_call_rpc(struct imx_sc_ipc *sc_ipc, void *msg, bool have_resp)
sc_ipc->msg = msg;
sc_ipc->count = 0;
sc_ipc->rx_size = 0;
ret = imx_scu_ipc_write(sc_ipc, msg);
if (ret < 0) {
dev_err(sc_ipc->dev, "RPC send msg failed: %d\n", ret);