public inbox for linux-i2c@vger.kernel.org
 help / color / mirror / Atom feed
From: Alexandre Belloni <alexandre.belloni@bootlin.com>
To: Marek Vasut <marex@denx.de>
Cc: linux-i2c@vger.kernel.org, Arnd Bergmann <arnd@arndb.de>,
	Bartosz Golaszewski <brgl@bgdev.pl>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Subject: Re: [PATCH v2 2/4] nvmem: Document type attribute
Date: Sun, 23 Jun 2024 12:04:39 +0200	[thread overview]
Message-ID: <20240623100439c0d176f5@mail.local> (raw)
In-Reply-To: <20240623031752.353818-2-marex@denx.de>

On 23/06/2024 05:15:45+0200, Marek Vasut wrote:
> Document a type attribute used by userspace to discern different types of
> NVMEM devices. The implementation is already present, the ABI document is
> missing, add it.
> 
> Signed-off-by: Marek Vasut <marex@denx.de>

Reviewed-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

> ---
> Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
> Cc: Arnd Bergmann <arnd@arndb.de>
> Cc: Bartosz Golaszewski <brgl@bgdev.pl>
> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
> Cc: linux-i2c@vger.kernel.org
> ---
> V2: - New patch
> ---
>  Documentation/ABI/stable/sysfs-bus-nvmem | 11 +++++++++++
>  1 file changed, 11 insertions(+)
> 
> diff --git a/Documentation/ABI/stable/sysfs-bus-nvmem b/Documentation/ABI/stable/sysfs-bus-nvmem
> index 854bd11d72ac4..0e3a8492a1082 100644
> --- a/Documentation/ABI/stable/sysfs-bus-nvmem
> +++ b/Documentation/ABI/stable/sysfs-bus-nvmem
> @@ -20,3 +20,14 @@ Description:
>  		  ...
>  		  *
>  		  0001000
> +
> +What:		/sys/bus/nvmem/devices/.../type
> +Date:		November 2018
> +KernelVersion:	5.0
> +Contact:	Alexandre Belloni <alexandre.belloni@bootlin.com>
> +Description:
> +		This read-only attribute allows user to read the NVMEM
> +		device type. Supported types are "Unknown", "EEPROM",
> +		"OTP", "Battery backed", "FRAM".
> +		Note: This file is only present if CONFIG_NVMEM_SYSFS
> +		is enabled
> -- 
> 2.43.0
> 

-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

  reply	other threads:[~2024-06-23 10:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-23  3:15 [PATCH v2 1/4] nvmem: Replace spaces with tab in documentation Marek Vasut
2024-06-23  3:15 ` [PATCH v2 2/4] nvmem: Document type attribute Marek Vasut
2024-06-23 10:04   ` Alexandre Belloni [this message]
2024-06-23  3:15 ` [PATCH v2 3/4] nvmem: Use sysfs_emit() for " Marek Vasut
2024-06-23  3:15 ` [PATCH v2 4/4] nvmem: core: Implement force_ro sysfs attribute Marek Vasut
2024-06-23  6:13   ` Greg Kroah-Hartman
2024-06-24  0:19     ` Marek Vasut

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240623100439c0d176f5@mail.local \
    --to=alexandre.belloni@bootlin.com \
    --cc=arnd@arndb.de \
    --cc=brgl@bgdev.pl \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-i2c@vger.kernel.org \
    --cc=marex@denx.de \
    --cc=srinivas.kandagatla@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox