Re: [PATCH v2 1/2] mailbox: Add mbox_request_channel_optional()
From: Konrad Dybcio
Date: Thu Dec 03 2026 - 06:37:42 EST
On 12/3/26 11:57 AM, Alexandre Rapaille via B4 Relay wrote:
> From: Alexandre Rapaille <arapaille@xxxxxxxxxxxxxxxxxxxx>
>
> Some clients have mailboxes for only some of their 'mboxes' indexes and
> fall back to another doorbell for the rest. mbox_request_channel() logs
> an error for each missing or empty entry before the client can fall back.
>
> Add an _optional variant that returns NULL for such an entry, like the
> other *_get_optional() helpers.
>
> Suggested-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx>
> Signed-off-by: Alexandre Rapaille <arapaille@xxxxxxxxxxxxxxxxxxxx>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx>
Konrad