[PATCH 2/3] mailbox: add support for bottom half received data
AngeloGioacchino Del Regno
angelogioacchino.delregno at collabora.com
Thu Oct 24 04:05:05 PDT 2024
Il 24/10/24 11:25, Karl.Li ha scritto:
> From: Karl Li <karl.li at mediatek.com>
>
> Within the MediaTek APU subsystem, a message passing mechanism
> is constructed on top of the mailbox system.
>
> The mailbox only has limited space for each message. The MTK APU firmware
> expects the message header from the mailbox, while the message body
> is passed through some fixed shared memory.
>
> The mailbox interrupt also serves as a mutex for the shared memory.
> Thus the interrupt may only be cleared after the message is handled.
> Add a new sleepable rx callback for mailbox clients for cases
> where handling the incoming data needs to sleep.
>
> Signed-off-by: Karl Li <karl.li at mediatek.com>
As said in the review of the ADSP MBOX driver, I really don't think that you need
an extra callback.
Regards,
Angelo
More information about the Linux-mediatek
mailing list