Re: [PATCH] nvmem: mtk-efuse: Only register socinfo device if needed cells are there
From: Nícolas F. R. A. Prado
Date: Mon Jul 08 2024 - 15:41:31 EST
On Mon, Jul 08, 2024 at 03:35:42PM -0400, Nícolas F. R. A. Prado wrote:
> Not every efuse region has cells storing SoC information. Only register
> an socinfo device if the required cells are present.
>
> This prevents the pointless process of creating an socinfo device,
> probing it with the socinfo driver only to ultimately error out like so
>
> mtk-socinfo mtk-socinfo.0.auto: error -ENOENT: Failed to get socinfo data
> mtk-socinfo mtk-socinfo.0.auto: probe with driver mtk-socinfo failed with error -2
>
> This issue is observed on the mt8183-kukui-jacuzzi-juniper-sku16
> platform, which has two efuse regions, but only one of them contains the
> SoC data.
>
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@xxxxxxxxxxxxx>
Sorry, there's an include missing in this patch. I'll send v2 with it added
right away.
Thanks,
Nícolas