From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5BBB744213E for ; Wed, 29 Jul 2026 09:46:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785318413; cv=none; b=ehddfiuly+rNKflNEPw7M1i3MI/XzExZhVNnQeYyWDusJTuH5gIsYY+4g07ZGCgneuKuPlC159XkNXgcStthLDR3oozqMX849p4NRyB8U9SFK/WbiGRlniOuCC8wBP78ujxu1HW60ZkMwGtkRu076C+mBcUMQoolB7iZeaoCTg4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785318413; c=relaxed/simple; bh=I3qpX0riemHaLV/iN4+cYCAhb17D057jndYqvPtlsvM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JAb8hsE4jbDyw7JTO1240P/kWihMGVcOojsJt3M6cL6BnUgg8eMt9W04JPqq27c4B+XJ4PjYVPW3/mKDbmLVeedzIKwWC2bCWtebhfdf6ZKMl43/cOewB65uqSDjpQ9cZlV67TsrHDog1XiYtxtKnybg5hI2P6FylhBlW/f2hq0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PD47XIlP; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PD47XIlP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7FAAC1F00A3A; Wed, 29 Jul 2026 09:46:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1785318412; bh=TPJEqlyuAJXkuocrqI6lsbNvyLtdtWqfrBCB/PJNBss=; h=From:To:Cc:Subject:Date; b=PD47XIlPf6KEY6uwpjUA+dwxZ6MkejSQW/3YTPAwVqeHgplxUxN35vFwWeU1eI0e1 hDALUrMhHKTPVJYuZfC0Q5q6yjK+skvCRitnMx1/lB9TRrEAUv2owUqDE0px/wABz/ DFSSLdhjaiHQpR4V/TIZlvTXiOiXVV/6Dup3w+pRDCy+KdiIJTqgvIYCzmh07z/NU/ KloqfPhGHqxV+b7kQDTLZ/GrP7o1rf09ey/MQVId/+6smdKQHsE96udERYnovBRfK4 /IyBM/mjDuhvwKzvsDzJ56DwlpmV7rxWlnXRc7EtRv5Wh3yHz9cdCKoseU977qQIPc abszyzu0zB98A== From: srini@kernel.org To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH 00/14] nvmem: updates for 7.3 Date: Wed, 29 Jul 2026 10:46:33 +0100 Message-ID: <20260729094647.111468-1-srini@kernel.org> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Srinivas Kandagatla 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%) -- 2.53.0