Linux kernel -stable discussions
 help / color / mirror / Atom feed
From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Cc: "Srinivas Kandagatla" <srini@kernel.org>,
	"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
	"Grégory Clement" <gregory.clement@bootlin.com>,
	"Thomas Petazzoni" <thomas.petazzoni@bootlin.com>,
	linux-kernel@vger.kernel.org, stable@vger.kernel.org
Subject: Re: [PATCH v2 2/2] nvmem: layouts: Make the fixed-layout driver optional
Date: Mon, 18 May 2026 09:41:23 +0200	[thread overview]
Message-ID: <87cxytupuk.fsf@bootlin.com> (raw)
In-Reply-To: <20260515-mathieu-nvmem-fixed-layout-v2-2-8ac215dd4016@bootlin.com> (Mathieu Dubois-Briand's message of "Fri, 15 May 2026 13:56:57 +0200")

Hi Mathieu,

On 15/05/2026 at 13:56:57 +02, Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> wrote:

> The fixed-layout support is now managed by a separate driver, so we can
> make this support optional. This aligns with the approach taken for
> other layout drivers.
>
> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
> ---
>  drivers/nvmem/core.c           | 1 +
>  drivers/nvmem/layouts/Kconfig  | 8 ++++++++
>  drivers/nvmem/layouts/Makefile | 2 +-
>  3 files changed, 10 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c
> index 0ec4924c4bda..594180d4b889 100644
> --- a/drivers/nvmem/core.c
> +++ b/drivers/nvmem/core.c
> @@ -834,6 +834,7 @@ int nvmem_add_cells_from_dt(struct nvmem_device *nvmem, struct device_node *np)
>  
>  	return 0;
>  }
> +EXPORT_SYMBOL_GPL(nvmem_add_cells_from_dt);
>  
>  static int nvmem_add_cells_from_legacy_of(struct nvmem_device *nvmem)
>  {
> diff --git a/drivers/nvmem/layouts/Kconfig b/drivers/nvmem/layouts/Kconfig
> index 5e586dfebe47..f823d56210a3 100644
> --- a/drivers/nvmem/layouts/Kconfig
> +++ b/drivers/nvmem/layouts/Kconfig
> @@ -8,6 +8,14 @@ if NVMEM_LAYOUTS
>  
>  menu "Layout Types"
>  
> +config NVMEM_LAYOUT_FIXED_LAYOUT
> +	tristate "Fixed layout support"
> +	help
> +	  Say Y here to enable support for NVMEM fixed layout, which provides a
> +	  way to describe memory cells with fixed offsets and sizes.
> +
> +	  If unsure, say N.

This will break existing default configurations, and most of them rely
on the fixed layout. I believe this entry should default to =y.

Thanks,
Miquèl

      reply	other threads:[~2026-05-18  7:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-15 11:56 [PATCH v2 0/2] nvmem: layouts: Add fixed-layout driver Mathieu Dubois-Briand
2026-05-15 11:56 ` [PATCH v2 1/2] " Mathieu Dubois-Briand
2026-05-18  7:40   ` Miquel Raynal
2026-05-19 14:59   ` Srinivas Kandagatla
2026-05-19 15:02   ` Srinivas Kandagatla
2026-05-15 11:56 ` [PATCH v2 2/2] nvmem: layouts: Make the fixed-layout driver optional Mathieu Dubois-Briand
2026-05-18  7:41   ` Miquel Raynal [this message]

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=87cxytupuk.fsf@bootlin.com \
    --to=miquel.raynal@bootlin.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=gregory.clement@bootlin.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mathieu.dubois-briand@bootlin.com \
    --cc=srini@kernel.org \
    --cc=stable@vger.kernel.org \
    --cc=thomas.petazzoni@bootlin.com \
    /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