On 28/05/2026 16:05, Karunika Choo wrote:
> When CONFIG_NVMEM is disabled, reading the optional "shader-present"
> nvmem cell can return -EOPNOTSUPP.
> 
> Treat this the same as the cell being absent so panthor can continue
> probing on platforms that do not provide shader-present fuses through
> nvmem.
> 
> Signed-off-by: Karunika Choo <[email protected]>

Reviewed-by: Steven Price <[email protected]>

Do we need a fixes too?

Fixes: c40b50c3cfbe ("drm/panthor: Implement reading shader_present from
nvmem")

Thanks,
Steve

> ---
>  drivers/gpu/drm/panthor/panthor_hw.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/panthor/panthor_hw.c 
> b/drivers/gpu/drm/panthor/panthor_hw.c
> index 7e315708ca7c..4c96573b649a 100644
> --- a/drivers/gpu/drm/panthor/panthor_hw.c
> +++ b/drivers/gpu/drm/panthor/panthor_hw.c
> @@ -182,7 +182,7 @@ static int overload_shader_present(struct panthor_device 
> *ptdev)
>                                             &contents);
>       if (!ret)
>               ptdev->gpu_info.shader_present = contents;
> -     else if (ret == -ENOENT)
> +     else if (ret == -ENOENT || ret == -EOPNOTSUPP)
>               return 0;
>       else
>               return dev_err_probe(ptdev->base.dev, ret,

Reply via email to