SSI-87: firmware: imx: scu: Support reception of any size message
authorFranck LENORMAND <franck.lenormand@nxp.com>
Fri, 13 Mar 2020 10:53:38 +0000 (11:53 +0100)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 19 Jan 2021 16:34:21 +0000 (10:34 -0600)
commit175fe6289fcb7e13cb5add2b80cdc0e5e049fb95
treef99064e91963e9b7629d92d01e6088d7d7640f1c
parent9e90987b4bda4ffdb0033b53c6067a8e153e83c9
SSI-87: firmware: imx: scu: Support reception of any size message

The implementation was limiting the size of a message which can be
received to 4 but soem response can be bigger. For example the
response of the 'sc_seco_secvio_config' API is 6 words.

This patch removes this limitation relying on the count of word
received instead of the index of the chan.
It does so by duplicating imx_scu_call_rpc as imx_scu_call_big_rpc
in order to cahnge the RX method using imx_scu_big_rx_callback
instead of imx_scu_rx_callback.

Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com>
drivers/firmware/imx/imx-scu.c
include/linux/firmware/imx/ipc.h