Re: [PATCH 11/11] nvmem: allow providers to specify an explicit NULL owner

From: Bartosz Golaszewski

Date: Thu Nov 19 2026 - 09:01:26 EST


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@xxxxxxxxx>
> ---

Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>