Skip to content

nvmem: updates for 7.3

[email protected] lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14nvmem: remove unused field from struct nvmem_devicedrivers/nvmem/internals.h+0 -10 replies
2/14nvmem: return -EOPNOTSUPP to in-kernel users on missing callbacksdrivers/nvmem/core.c+19 -180 replies
3/14nvmem: check the return value of gpiod_set_value_cansleep()drivers/nvmem/core.c+11 -50 replies
4/14nvmem: simplify locking with guard()drivers/nvmem/core.c+37 -510 replies
5/14nvmem: remove unneeded __nvmem_device_put()drivers/nvmem/core.c+15 -200 replies
6/14nvmem: split out the reg_read/write() callbacks out of struct nvmem_devicedrivers/nvmem/core.c drivers/nvmem/internals.h+34 -120 replies
7/14nvmem: simplify nvmem_sysfs_remove_compat()drivers/nvmem/core.c+5 -90 replies
8/14nvmem: remove duplicated reference countingdrivers/nvmem/core.c drivers/nvmem/internals.h+34 -471 reply
9/14nvmem: protect nvmem_device::ops with SRCUdrivers/nvmem/core.c drivers/nvmem/internals.h+41 -70 replies
10/14eeprom: move nvmem EEPROM drivers to drivers/nvmem/MAINTAINERS drivers/misc/eeprom/Kconfig drivers/misc/eeprom/Makefile +7 more+94 -1000 replies
11/14nvmem: airoha: add ARM64 dependencydrivers/nvmem/Kconfig+1 -00 replies
12/14nvmem: brcm_nvram: reject empty NVRAM partitiondrivers/nvmem/brcm_nvram.c+5 -00 replies
13/14nvmem: brcm_nvram: fix out-of-bounds access on malformed flash datadrivers/nvmem/brcm_nvram.c+7 -30 replies
14/14dt-bindings: nvmem: qfprom: Add ipq5210 & ipq9650 compatibleDocumentation/devicetree/bindings/nvmem/qcom,qfprom.yaml+2 -00 replies

Reviews trailers per patch

4 of 14 patches have a Reviewed-by or Acked-by.

PatchLoic PoulainJohan HovoldWolfram SangGreg Kroah-HartmanArnd BergmannChristian MarangiKrzysztof Kozlowski
1/14T-b
2/14T-b
3/14T-b R-b
4/14T-b
5/14T-b
6/14T-b
7/14T-b
8/14T-b
9/14T-b
10/14R-b A-b A-b
11/14R-b
12/14
13/14
14/14R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 7 reviewers.

Read the v1 thread

Cover letter [PATCH 00/14] nvmem: updates for 7.3

From: Srinivas Kandagatla <[email protected]>

Hi Greg,

This series collects the nvmem changes that can be queued for 7.3.

Highlights:

- Core: split the reg_read/write() callbacks out of struct nvmem_device into a separate ops structure and protect nvmem_device::ops with SRCU. After nvmem_unregister() returns, the device stops accepting consumer calls (they get -ENODEV) so we no longer reach into the provider's memory once it has gone. Cell entries are now destroyed in .release() so outstanding nvmem_cell handles remain valid until the last reference drops.

- Core cleanups leading up to the SRCU conversion: return -EOPNOTSUPP to in-kernel users when the read/write callback is missing, simplify locking with guard(), drop __nvmem_device_put() and the duplicated reference counting, simplify nvmem_sysfs_remove_compat(), check the return value of gpiod_set_value_cansleep(), and remove an unused field from struct nvmem_device.

- Move the nvmem-based EEPROM drivers (at24, at25, ee1004, eeprom_93xx46, m24lr) from drivers/misc/eeprom/ to drivers/nvmem/ so the review path and get_maintainer.pl output match the subsystem they actually belong to.

- brcm_nvram: reject empty NVRAM partitions and fix an out-of-bounds access on malformed flash data where header->len sat between the allocated data buffer size and the full partition size.

- airoha: add an ARM64 dependency.

- dt-bindings: document qcom,qfprom compatibles for ipq5210 and ipq9650.

These patches are rebased on top of char-misc-next:

https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git/log/?h=char-misc-next

and depend on the nvmem fixes series I sent earlier:

https://lkml.org/lkml/2026/7/24/2035

Thanks,
srini

Arnd Bergmann (1):
nvmem: airoha: add ARM64 dependency

Bartosz Golaszewski (10):
nvmem: remove unused field from struct nvmem_device
nvmem: return -EOPNOTSUPP to in-kernel users on missing callbacks
nvmem: check the return value of gpiod_set_value_cansleep()
nvmem: simplify locking with guard()
nvmem: remove unneeded __nvmem_device_put()
nvmem: split out the reg_read/write() callbacks out of struct
nvmem_device
nvmem: simplify nvmem_sysfs_remove_compat()
nvmem: remove duplicated reference counting
nvmem: protect nvmem_device::ops with SRCU
eeprom: move nvmem EEPROM drivers to drivers/nvmem/

Rosen Penev (2):
nvmem: brcm_nvram: reject empty NVRAM partition
nvmem: brcm_nvram: fix out-of-bounds access on malformed flash data

Varadarajan Narayanan (1):
dt-bindings: nvmem: qfprom: Add ipq5210 & ipq9650 compatible

 .../bindings/nvmem/qcom,qfprom.yaml           |   2 +
 MAINTAINERS                                   |   4 +-
 drivers/misc/eeprom/Kconfig                   |  93 ------
 drivers/misc/eeprom/Makefile                  |   5 -
 drivers/nvmem/Kconfig                         |  88 +++++
 drivers/nvmem/Makefile                        |   5 +
 drivers/{misc/eeprom => nvmem}/at24.c         |   0
 drivers/{misc/eeprom => nvmem}/at25.c         |   0
 drivers/nvmem/brcm_nvram.c                    |  15 +-
 drivers/nvmem/core.c                          | 311 ++++++++++--------
 drivers/{misc/eeprom => nvmem}/ee1004.c       |   0
 .../{misc/eeprom => nvmem}/eeprom_93xx46.c    |   0
 drivers/nvmem/internals.h                     |  13 +-
 drivers/{misc/eeprom => nvmem}/m24lr.c        |   0
 14 files changed, 284 insertions(+), 252 deletions(-)
 rename drivers/{misc/eeprom => nvmem}/at24.c (100%)
 rename drivers/{misc/eeprom => nvmem}/at25.c (100%)
 rename drivers/{misc/eeprom => nvmem}/ee1004.c (100%)
 rename drivers/{misc/eeprom => nvmem}/eeprom_93xx46.c (100%)
 rename drivers/{misc/eeprom => nvmem}/m24lr.c (100%)
Signature · 1 line
2.53.0