mailbox: mpfs: switch to txdone_poll
authorConor Dooley <conor.dooley@microchip.com>
Tue, 7 Mar 2023 20:22:52 +0000 (20:22 +0000)
committerConor Dooley <conor.dooley@microchip.com>
Mon, 3 Apr 2023 18:25:46 +0000 (19:25 +0100)
commitb5984a9844fc45cd301a28fb56f3de95f7e20f3c
tree0a3ee10b0acdc8f37ee7b3a6daee563465e81653
parent75dfbcbfd781f826c73ebe42b78d49c23179d082
mailbox: mpfs: switch to txdone_poll

The system controller on PolarFire SoC has no interrupt to signify that
the TX has been completed. The interrupt instead signals that a service
requested by the mailbox client has succeeded. If a service fails, there
will be no interrupt delivered.

Switch to polling the busy register to determine whether transmission
has completed.

Fixes: 83d7b1560810 ("mbox: add polarfire soc system controller mailbox")
Acked-by: Jassi Brar <jaswinder.singh@linaro.org>
Tested-by: Valentina Fernandez <valentina.fernandezalanis@microchip.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
drivers/mailbox/mailbox-mpfs.c