From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DB711CD4F54 for ; Thu, 28 May 2026 21:10:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=EE5HM668RiBUPvcutvt2dGJFbkQrJV21fqnkDq8qnpQ=; b=PASEEZDUQzZLhonjaqxWdpgE7d wPouBFN16UCxMpA/DzyhztTBZxU1tkbDdU787YC/CHauUYhKgffdEM0+I9TeVujrATySVNjR7hRny HuFxqHDbbsdyNj2kobodEK/aBRmOm2dnsmKx4pVBxX0B4LqPNSxFVwVFMiwrGN/EToL0VsLOFKPom 5Sx+QAez3C52iOYjO7p9Wx3FBwenLz20ru2r+mAh17umGYIs/g78MVrCX8VV/g3i/FUIKGFr4tURp MzTJlOzyAfZZaYyk3X4dx+qe+znqQGk3XInV3uV4QYRovux3XIOp+7dgWeTVEMIUOyoHCIHxMRrlU MwhwQ0LA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wShzR-00000006Nz2-2QoA; Thu, 28 May 2026 21:10:07 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wShzO-00000006NyU-2vS8 for linux-arm-kernel@lists.infradead.org; Thu, 28 May 2026 21:10:03 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 093B9439EE; Thu, 28 May 2026 21:10:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 250AA1F000E9; Thu, 28 May 2026 21:10:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1780002600; bh=EE5HM668RiBUPvcutvt2dGJFbkQrJV21fqnkDq8qnpQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=Cb4ct4iGr/VLy6w+Rx1wvifGRXGZPQl3JNKIZkDKU2ZX7yZK+qoFALr0O6lgVm4qT Zmh/PZwuA9LK9C8EhBr7Kkj0nAQlqNqZICHJPbe6KMm6TN0duJvf4KZy6sBS/LnXly hv76QIpjX8AfO7GWMa1kJuFWuR3Qh06xKU3ebn+DFMt+uIxJDELHPD3EwDP0f28Vfa ixtRSMk5U/0oWAGyYRD7EbSe1sfJ1bnNdPULYAPgxcnHWFEJhaXf/vj8rpNE+ai1g1 StkelGcz7A6BltDYozOab10nEbF7O4JdGmwGa3VbR/jmSl3c8m9R2Fr6gfxo39VhNZ zjYFKOKdhXhcg== Date: Thu, 28 May 2026 23:09:58 +0200 From: Thierry Reding To: Shashank Balaji Cc: Suzuki K Poulose , James Clark , Alexander Shishkin , Greg Kroah-Hartman , "Rafael J. Wysocki" , Danilo Krummrich , Miguel Ojeda , Boqun Feng , Gary Guo , =?utf-8?B?QmrDtnJu?= Roy Baron , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Jonathan Corbet , Shuah Khan , Luis Chamberlain , Petr Pavlu , Daniel Gomez , Sami Tolvanen , Aaron Tomlin , Mike Leach , Leo Yan , Jonathan Hunter , Rahul Bukte , linux-kernel@vger.kernel.org, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, driver-core@lists.linux.dev, rust-for-linux@vger.kernel.org, linux-doc@vger.kernel.org, Daniel Palmer , Tim Bird , linux-modules@vger.kernel.org, linux-tegra@vger.kernel.org, Sumit Gupta Subject: Re: [PATCH v5 1/4] soc/tegra: cbb: Move driver registration from pure_initcall to core_initcall Message-ID: References: <20260518-acpi_mod_name-v5-0-705ccc430885@sony.com> <20260518-acpi_mod_name-v5-1-705ccc430885@sony.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="4ab7fuzmdunsjhv4" Content-Disposition: inline In-Reply-To: <20260518-acpi_mod_name-v5-1-705ccc430885@sony.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260528_141002_789198_A85E94F7 X-CRM114-Status: GOOD ( 18.06 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --4ab7fuzmdunsjhv4 Content-Type: text/plain; protected-headers=v1; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH v5 1/4] soc/tegra: cbb: Move driver registration from pure_initcall to core_initcall MIME-Version: 1.0 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_kobje= ct(), > which dereferences module_kset via kset_find_obj(), is not called if mod_= name > is not set, which is the case now. >=20 > 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 modu= le_kset > init to pure_initcall level, ensuring module_kset init happens before teg= ra cbb > driver registration. >=20 > Suggested-by: Gary Guo > Acked-by: Sumit Gupta > Co-developed-by: Rahul Bukte > Signed-off-by: Rahul Bukte > Signed-off-by: Shashank Balaji > --- > 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 --4ab7fuzmdunsjhv4 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAmoYryYACgkQ3SOs138+ s6HxvRAAmG3c3c73o23/oyuaQ30+lIHtYwbsevpSjGnsNuorSs/lN9aor/V9VRD7 jPoBp8fcubCks2T919zWdxBCIiorBBH78gynBTp/tFNMAfR5r7UHUn+AT55eZXgB dq33xVP59qTyQ3dU5U9RPV6EEuQW5WyjOqcDOPeQI66ymlummlwQXdDrYiIO6eBK SddGUlzatL9rYGmpmFKmoDvBjHx+DmXWO1EDR7zU+6F80jz6NwibJ6+gNC6ttoF5 39bBlwuQOLjqokaIdDUvAbU47RmFRojs21jtLzFI5WI7PcGu/5uoGDwA0mjmmhIk wIBDQ6+kP6iE0RWWRMN4H1huKDmkBUhv9BsBkdEhDYGSLFhREecuqSp9ySSiSlaA yf1WnN66rhIpLSZSg5lwmeNv6GIOvYN0ZPUcE802z9mEnbRZcJWW7OI2/js97nIz skvgT/9LKUoFd84cMVhv0FQW9V99v0TS3o9ocB/wEHmlH5Ic3uqwFM7PXUmDFJxu 8lR3Slt7xaKJzPm421Yg7R/iDc+ZBLh4z+eMjv5cPWnlxW0rhq8yO3/TFEo5xa0u OSlDcfiOzx1pHgkmvnRd/mjTUoz4BNCdsaha1VbWd3iGg0P5HQ4fPkfeUZLg44ZN 0EUSE7o5FR6ahZjxH7AjtCYa51BylqPiwSPPHTzd1+9/X0ts+JE= =YYeN -----END PGP SIGNATURE----- --4ab7fuzmdunsjhv4--