arm: socfpga: mailbox: Always read mailbox responses before returning status
authorChee Hong Ang <chee.hong.ang@intel.com>
Wed, 12 Aug 2020 01:56:22 +0000 (09:56 +0800)
committerLey Foon Tan <ley.foon.tan@intel.com>
Fri, 9 Oct 2020 09:53:13 +0000 (17:53 +0800)
commit833230ed33684f399aae84633f4992106b6d3949
treee4284e80ec88baa4e835b48f98d56984d528a4b9
parente3fca5072bf78f7fd7eeab027d6e83bb555def9e
arm: socfpga: mailbox: Always read mailbox responses before returning status

Mailbox driver should always check for the length of the response
and read the response data before returning the response status to
caller.

Signed-off-by: Chee Hong Ang <chee.hong.ang@intel.com>
Reviewed-by: Ley Foon Tan <ley.foon.tan@intel.com>
arch/arm/mach-socfpga/mailbox_s10.c