Re: (subset) [PATCH v3 00/11] nvmem: complete provider and layout disconnection

From: Srinivas Kandagatla

Date: Fri Nov 27 2026 - 06:15:02 EST



On Fri, 20 Nov 2026 13:08:30 -0700, James Hilliard wrote:
> NVMEM unregister already disconnects register callbacks with SRCU. Some
> accesses extend beyond those callbacks: keepout traversal, cell
> post-processing, DT fixups and device matching can still use provider
> state. Layout unbind also leaves its cells and their callbacks available
> to retained consumers.
>
> Extend the existing drain to those accesses, and retire layout-owned
> cells independently of provider cells. Old handles retain core-owned
> metadata and reject further access. Explicit cell references and sysfs
> group ownership make layout removal and rebind independent of existing
> consumers. Release the write-protect GPIO when callbacks are drained so
> a retained consumer does not prevent provider reprobe.
>
> [...]

Applied, thanks!

[01/11] nvmem: retain the provider node until device release
commit: e5cb8ebd4c5387c5d7eddefbbd89e98efa359878
[02/11] nvmem: drain keepout and cell post-processing accesses
commit: e770f469df98a02f10e97c2ebe6abf93fec460f7
[03/11] nvmem: exclude disconnected providers from callback admission
commit: 4508485e8156afd4c9d901f6192d4fe13867e698
[04/11] nvmem: release write protection when the provider disconnects
commit: 189dc217748ae8ad4198bed150d94aa82a44fa6c

Best regards,
--
Srinivas Kandagatla <srini@xxxxxxxxxx>