On 2023-11-24 20:38, Miquel Raynal wrote:
Two series lived in parallel for some time, which led to this situation:
- The nvmem-layout container is used for dynamic layouts
- We now expect fixed layouts to also use the nvmem-layout container
but this does not require any additional driver, the support is built-in the nvmem core.
Ensure we don't refuse to probe for wrong reasons.
I pushed a pretty much identical patch to OpenWrt (I just forgot of_node_put()): commit 61f674df4f0c ("kernel: nvmem: fix "fixed-layout" & support "mac-base""): https://git.openwrt.org/?p=openwrt/openwrt.git%3Ba=commitdiff%3Bh=61f674df4f...
It's in use since July and seems to do the trick just fine.
Thanks for submitting this fix.
Fixes: 27f699e578b1 ("nvmem: core: add support for fixed cells *layout*") Cc: stable@vger.kernel.org Reported-by: Luca Ceresoli luca.ceresoli@bootlin.com Signed-off-by: Miquel Raynal miquel.raynal@bootlin.com
Tested-by: Rafał Miłecki rafal@milecki.pl