Re: [PATCH 15/28] mfd: loongson-se: Check return value of dma_set_mask_and_coherent()

From: Qunqin Zhao

Date: Mon Oct 26 2026 - 05:33:03 EST



在 2026/10/21 20:09, Lee Jones 写道:
> loongson_se_probe() ignores the return value of
> dma_set_mask_and_coherent() when requesting a 64-bit DMA mask before
> allocating coherent DMA memory. Check the return value and abort probe
> if the platform cannot satisfy the 64-bit DMA mask requirement.
>
> Fixes: e551fa3159e3 ("mfd: Add support for Loongson Security Engine chip controller")
> Closes: https://sashiko.dev/#/bug/linux-6685ee0c-b7ed-4f21-8800-cc705cec449b
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Lee Jones <lee@xxxxxxxxxx>

Reviewed-by: Qunqin Zhao <zhaoqunqin@xxxxxxxxxxx>

Thanks for fixing this!


Best Regards,

Qunqin.