[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240402091644.35c7dac6@xps-13>
Date: Tue, 2 Apr 2024 09:16:44 +0200
From: Miquel Raynal <miquel.raynal@...tlin.com>
To: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
Cc: Srinivas Kandagatla <srinivas.kandagatla@...aro.org>, Michael Walle
<mwalle@...nel.org>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/3] nvmem: layouts: store owner from modules with
nvmem_layout_driver_register()
Hi Krzysztof,
krzysztof.kozlowski@...aro.org wrote on Fri, 29 Mar 2024 17:13:35 +0100:
> Modules registering driver with nvmem_layout_driver_register() might
> forget to set .owner field. The field is used by some of other kernel
> parts for reference counting (try_module_get()), so it is expected that
> drivers will set it.
>
> Solve the problem by moving this task away from the drivers to the core
> code, just like we did for platform_driver in
> commit 9447057eaff8 ("platform_device: use a macro instead of
> platform_driver_register").
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
Reviewed-by: Miquel Raynal <miquel.raynal@...tlin.com>
Thanks,
Miquèl
Powered by blists - more mailing lists