]> git.ipfire.org Git - thirdparty/linux.git/commit
mailbox: sprd: clear delivery flag before handling TX done
authorOtto Pflüger <otto.pflueger@abscue.de>
Sat, 10 Jan 2026 15:43:36 +0000 (16:43 +0100)
committerJassi Brar <jassisinghbrar@gmail.com>
Mon, 2 Feb 2026 00:59:33 +0000 (18:59 -0600)
commitc77661d60d4223bf2ff10d409beb0c3b2021183b
treed87f25abf70de14e3ea78be4b6f20be9a226cebe
parent0856aed508878c6208cf17c75361317287101b3d
mailbox: sprd: clear delivery flag before handling TX done

If there are any pending messages in the mailbox queue, they are sent
as soon as a TX done event arrives from the driver. This may trigger a
new delivery interrupt while the previous one is still being handled.
If the delivery status is cleared after this, the interrupt is lost.
To prevent this from happening, clear the delivery status immediately
after checking it and before any new messages are sent.

Signed-off-by: Otto Pflüger <otto.pflueger@abscue.de>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
drivers/mailbox/sprd-mailbox.c