[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <92d4d421-54a8-4a41-8b47-61ae39b55ebb@linaro.org>
Date: Tue, 13 Feb 2024 13:07:20 +0000
From: Srinivas Kandagatla <srinivas.kandagatla@...aro.org>
To: Chen-Yu Tsai <wenst@...omium.org>,
Matthias Brugger <matthias.bgg@...il.com>,
AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>
Cc: linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org,
William-tw Lin <william-tw.lin@...iatek.com>
Subject: Re: [PATCH 3/3] nvmem: mtk-efuse: Drop NVMEM device name
On 30/01/2024 09:56, Chen-Yu Tsai wrote:
> The MT8183 has not one but two efuse devices. The static name and ID
> causes the second efuse device to fail to probe, due to duplicate sysfs
> entries.
have you considered using NVMEM_DEVID_AUTO?
--srini
>
> With the rework of the mtk-socinfo driver, lookup by name is no longer
> necessary. The custom name can simply be dropped.
>
> Fixes: 4e6102d60d88 ("nvmem: mtk-efuse: Register MediaTek socinfo driver from efuse")
> Signed-off-by: Chen-Yu Tsai <wenst@...omium.org>
> ---
> drivers/nvmem/mtk-efuse.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/nvmem/mtk-efuse.c b/drivers/nvmem/mtk-efuse.c
> index f5bebcecf9bd..9caf04667341 100644
> --- a/drivers/nvmem/mtk-efuse.c
> +++ b/drivers/nvmem/mtk-efuse.c
> @@ -86,7 +86,6 @@ static int mtk_efuse_probe(struct platform_device *pdev)
> econfig.size = resource_size(res);
> econfig.priv = priv;
> econfig.dev = dev;
> - econfig.name = "mtk-efuse";
> if (pdata->uses_post_processing)
> econfig.fixup_dt_cell_info = &mtk_efuse_fixup_dt_cell_info;
> nvmem = devm_nvmem_register(dev, &econfig);
Powered by blists - more mailing lists