[PATCH 11/11] nvmem: allow providers to specify an explicit NULL owner
Bartosz Golaszewski
brgl at kernel.org
Thu Nov 19 06:01:13 PST 2026
On Tue, Nov 17, 2026 at 12:38:18PM -0700, James Hilliard wrote:
> The owner fallback treats NULL as an unspecified module. A provider whose
> operations belong to built-in subsystem code therefore cannot distinguish
> its deliberate NULL owner from a request to use the parent driver module.
>
> Add owner_is_explicit so such providers can select their actual callback
> owner. Leave existing callers on the parent-module fallback. Unregister
> still disconnects and drains callbacks before the provider releases its
> state.
>
> Signed-off-by: James Hilliard <james.hilliard1 at gmail.com>
> ---
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski at oss.qualcomm.com>
More information about the linux-mtd
mailing list