Re: [PATCH v3 2/2] cxl/mbox: Use mapped errno to determine command status

From: Jonathan Cameron

Date: Mon Nov 16 2026 - 20:18:36 EST


On Mon, 16 Nov 2026 15:09:38 +0800
Li Ming <ming.li@xxxxxxxxxxxx> wrote:

> cxl_mbox_cmd_rctable already maps all mailbox command return codes to
> errno values. Use the returned errno directly instead of checking
> mailbox return codes separately to determine whether a command succeeded
> or failed.
>
> Signed-off-by: Li Ming <ming.li@xxxxxxxxxxxx>
> Reviewed-by: Davidlohr Bueso <dave@xxxxxxxxxxxx>
Reviewed-by: Jonathan Cameron <jonathan.cameron@xxxxxxxxxxxxxxxx>