]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm: socfpga: mailbox: Add mailbox retry support
authorLey Foon Tan <ley.foon.tan@intel.com>
Wed, 12 Aug 2020 01:56:25 +0000 (09:56 +0800)
committerLey Foon Tan <ley.foon.tan@intel.com>
Fri, 9 Oct 2020 09:53:13 +0000 (17:53 +0800)
commitde84e2d8c9e60452a2a1a6f99474d54a9919c024
tree3bf1fc2fbf67ce3d8832490ef68da9be3b301c3d
parent6a48f95c6be15f0b2cad49b9ba1b7e04374da641
arm: socfpga: mailbox: Add mailbox retry support

Resend mailbox command for 3 times with 2ms interval in between if
it receives MBOX_RESP_TIMEOUT and MBOX_RESP_DEVICE_BUSY response code.

Add a wrapper function mbox_send_cmd_common_retry() for retry, change
all the callers to use this wrapper function.

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