[PATCH v5 1/4] soc/tegra: cbb: Move driver registration from pure_initcall to core_initcall
Thierry Reding
thierry.reding at kernel.org
Thu May 28 14:09:58 PDT 2026
On Mon, May 18, 2026 at 07:19:57PM +0900, Shashank Balaji wrote:
> Commit "driver core: platform: set mod_name in driver registration" will set
> struct device_driver's mod_name member for platform driver registration. For a
> driver to be registered with its mod_name set, module_kset needs to be
> initialized, which currently happens in a subsys_initcall in param_sysfs_init().
> The tegra cbb drivers register themselves before module_kset init, in a
> pure_initcall. This works currently because lookup_or_create_module_kobject(),
> which dereferences module_kset via kset_find_obj(), is not called if mod_name
> is not set, which is the case now.
>
> So in preparation for the commit "driver core: platform: set mod_name in driver registration",
> move tegra cbb driver registration to core_initcall level, and commit
> "kernel: param: initialize module_kset in a pure_initcall" will move module_kset
> init to pure_initcall level, ensuring module_kset init happens before tegra cbb
> driver registration.
>
> Suggested-by: Gary Guo <gary at garyguo.net>
> Acked-by: Sumit Gupta <sumitg at nvidia.com>
> Co-developed-by: Rahul Bukte <rahul.bukte at sony.com>
> Signed-off-by: Rahul Bukte <rahul.bukte at sony.com>
> Signed-off-by: Shashank Balaji <shashank.mahadasyam at sony.com>
> ---
> Patch 4 depends on this patch
> ---
> drivers/soc/tegra/cbb/tegra194-cbb.c | 2 +-
> drivers/soc/tegra/cbb/tegra234-cbb.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
Assuming you want to take this through the core driver tree:
Acked-by: Thierry Reding <treding at nvidia.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20260528/da66bb24/attachment.sig>
More information about the linux-arm-kernel
mailing list