linux-sunxi.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [PATCH] nvmem: sunxi_sid: Set type to OTP
@ 2021-04-19  1:58 Samuel Holland
  2021-04-19  2:16 ` Chen-Yu Tsai
  2021-05-17  9:18 ` Srinivas Kandagatla
  0 siblings, 2 replies; 3+ messages in thread
From: Samuel Holland @ 2021-04-19  1:58 UTC (permalink / raw)
  To: Srinivas Kandagatla
  Cc: Maxime Ripard, Chen-Yu Tsai, Jernej Skrabec, linux-arm-kernel,
	linux-sunxi, linux-kernel, Samuel Holland

This device currently reports an "Unknown" type in sysfs.
Since it is an eFuse hardware device, set its type to OTP.

Signed-off-by: Samuel Holland <samuel@sholland.org>
---
 drivers/nvmem/sunxi_sid.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/nvmem/sunxi_sid.c b/drivers/nvmem/sunxi_sid.c
index e26ef1bbf198..275b9155e473 100644
--- a/drivers/nvmem/sunxi_sid.c
+++ b/drivers/nvmem/sunxi_sid.c
@@ -142,6 +142,7 @@ static int sunxi_sid_probe(struct platform_device *pdev)
 
 	nvmem_cfg->dev = dev;
 	nvmem_cfg->name = "sunxi-sid";
+	nvmem_cfg->type = NVMEM_TYPE_OTP;
 	nvmem_cfg->read_only = true;
 	nvmem_cfg->size = cfg->size;
 	nvmem_cfg->word_size = 1;
-- 
2.26.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] nvmem: sunxi_sid: Set type to OTP
  2021-04-19  1:58 [PATCH] nvmem: sunxi_sid: Set type to OTP Samuel Holland
@ 2021-04-19  2:16 ` Chen-Yu Tsai
  2021-05-17  9:18 ` Srinivas Kandagatla
  1 sibling, 0 replies; 3+ messages in thread
From: Chen-Yu Tsai @ 2021-04-19  2:16 UTC (permalink / raw)
  To: Samuel Holland
  Cc: Srinivas Kandagatla, Maxime Ripard, Jernej Skrabec,
	linux-arm-kernel, linux-sunxi, linux-kernel

On Mon, Apr 19, 2021 at 9:58 AM Samuel Holland <samuel@sholland.org> wrote:
>
> This device currently reports an "Unknown" type in sysfs.
> Since it is an eFuse hardware device, set its type to OTP.
>
> Signed-off-by: Samuel Holland <samuel@sholland.org>

Acked-by: Chen-Yu Tsai <wens@csie.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] nvmem: sunxi_sid: Set type to OTP
  2021-04-19  1:58 [PATCH] nvmem: sunxi_sid: Set type to OTP Samuel Holland
  2021-04-19  2:16 ` Chen-Yu Tsai
@ 2021-05-17  9:18 ` Srinivas Kandagatla
  1 sibling, 0 replies; 3+ messages in thread
From: Srinivas Kandagatla @ 2021-05-17  9:18 UTC (permalink / raw)
  To: Samuel Holland
  Cc: Maxime Ripard, Chen-Yu Tsai, Jernej Skrabec, linux-arm-kernel,
	linux-sunxi, linux-kernel



On 19/04/2021 02:58, Samuel Holland wrote:
> This device currently reports an "Unknown" type in sysfs.
> Since it is an eFuse hardware device, set its type to OTP.
> 
> Signed-off-by: Samuel Holland <samuel@sholland.org>
> ---

Applied thanks,

--srini
>   drivers/nvmem/sunxi_sid.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/nvmem/sunxi_sid.c b/drivers/nvmem/sunxi_sid.c
> index e26ef1bbf198..275b9155e473 100644
> --- a/drivers/nvmem/sunxi_sid.c
> +++ b/drivers/nvmem/sunxi_sid.c
> @@ -142,6 +142,7 @@ static int sunxi_sid_probe(struct platform_device *pdev)
>   
>   	nvmem_cfg->dev = dev;
>   	nvmem_cfg->name = "sunxi-sid";
> +	nvmem_cfg->type = NVMEM_TYPE_OTP;
>   	nvmem_cfg->read_only = true;
>   	nvmem_cfg->size = cfg->size;
>   	nvmem_cfg->word_size = 1;
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-05-17  9:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-19  1:58 [PATCH] nvmem: sunxi_sid: Set type to OTP Samuel Holland
2021-04-19  2:16 ` Chen-Yu Tsai
2021-05-17  9:18 ` Srinivas Kandagatla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).