Re: [PATCH] accel/ethosu: check MMIO mapping errors in probe

From: Rob Herring

Date: Mon Aug 24 2026 - 17:50:19 EST


On Thu, Jul 16, 2026 at 02:52:19PM +0800, zhaoguohan@xxxxxxxxxx wrote:
> From: GuoHan Zhao <zhaoguohan@xxxxxxxxxx>
>
> devm_platform_ioremap_resource() returns an error pointer when the register
> resource cannot be mapped. ethosu_probe() stores it and continues until
> initialization dereferences it through MMIO accessors.
>
> Return the mapping error before initializing the device.
>
> Fixes: 5a5e9c0228e6 ("accel: Add Arm Ethos-U NPU driver")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: GuoHan Zhao <zhaoguohan@xxxxxxxxxx>
> ---
> drivers/accel/ethosu/ethosu_drv.c | 2 ++
> 1 file changed, 2 insertions(+)

Applied, thanks.

Rob