]> git.ipfire.org Git - thirdparty/linux.git/commit
nvmem: layouts: Add fixed-layout driver
authorMathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Fri, 24 Jul 2026 22:34:04 +0000 (23:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 Jul 2026 09:00:13 +0000 (11:00 +0200)
commitb5be879519291f139fa7b365fd0dbc84710e4919
tree266a97312b97d5182b1db502ab1dc86877919a79
parentff10b6db0ab75b132aed69ab144ac04f63ef9bdb
nvmem: layouts: Add fixed-layout driver

Current implementation isn't working well when device tree nodes have a
phandle on a fixed-layout nvmem node. As the fixed layout is handled in
nvmem core, no driver is ever associated with the layout, and the device
consumer driver probe is deferred indefinitely.

Remove the specific handling of fixed-layout and add a layout driver.
This makes the fixed-layout similar to all other layouts, fixing the
whole issue.

Fixes: fc29fd821d9a ("nvmem: core: Rework layouts to become regular devices")
Cc: stable@vger.kernel.org
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Srinivas Kandagatla <srini@kernel.org>
Link: https://patch.msgid.link/20260724223404.629248-3-srini@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
MAINTAINERS
drivers/nvmem/core.c
drivers/nvmem/internals.h
drivers/nvmem/layouts.c
drivers/nvmem/layouts/Makefile
drivers/nvmem/layouts/fixed-layout.c [new file with mode: 0644]
include/linux/nvmem-provider.h