mailbox: omap: Reverse FIFO busy check logic
authorAndrew Davis <afd@ti.com>
Wed, 10 Apr 2024 13:59:41 +0000 (08:59 -0500)
committerJassi Brar <jassisinghbrar@gmail.com>
Mon, 20 May 2024 03:29:44 +0000 (22:29 -0500)
commit04a07a3441481157e7aeb212c9405123c80e65b9
tree1ba25d8c79c61c824f9c6f670282279a55ed48dd
parent5aa00b68eadee64e1a6e95325f364511f37631d8
mailbox: omap: Reverse FIFO busy check logic

It is much more clear to check if the hardware FIFO is full and return
EBUSY if true. This allows us to also remove one level of indention
from the core of this function. It also makes the similarities between
omap_mbox_chan_send_noirq() and omap_mbox_chan_send() more obvious.

Signed-off-by: Andrew Davis <afd@ti.com>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
drivers/mailbox/omap-mailbox.c