From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from jpms-ob01-os7.noc.sony.co.jp (jpms-ob01-os7.noc.sony.co.jp [211.125.139.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 687193ED125; Mon, 18 May 2026 10:30:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=211.125.139.71 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779100250; cv=none; b=isGwllJ0hcQxQ/l+hj7JJZ90Jp3akbNwHpua3G4rL5WJVTrc1t7TZpn+/g0YRKEsPdJUFe+48QZ0zetJLOmiuQs2xnpm+z9V4eBltMWpbA6LMgBVB1d56vNkgajA7FFgQHMI3e5IV2QSC3KFc1PAhoQWAdkGttOYVs1cl22lQKk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779100250; c=relaxed/simple; bh=cb8qj4xhg343NbZdyo6rpt+QT8xtsS/YnAvcGC2vlak=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=d0L/NHWWbQwnZW2uV0r8zI1hjjpwSFFr92SLCNIOkS8soCcXRsy5ww7mE8lD/nJJXajIy0rkuKUVnxC+wD7r+dPBspFMrXvSXYFEqoh6i22EV6uTiFXcUCcrNBGWL50aXznGpuGbzvtRraF4U+lg8v+x7P0lP+qw2GNcN64MNgY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sony.com; spf=fail smtp.mailfrom=sony.com; dkim=pass (2048-bit key) header.d=sony.com header.i=@sony.com header.b=mSUKZS6m; arc=none smtp.client-ip=211.125.139.71 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sony.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=sony.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sony.com header.i=@sony.com header.b="mSUKZS6m" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sony.com; s=s1jp; t=1779100236; x=1810636236; h=from:date:subject:mime-version:content-transfer-encoding: message-id:references:in-reply-to:to:cc; bh=pNRQ31g1BKh9xMFz1czeGZGptMasxgt/rCDZtMGdZYw=; b=mSUKZS6mRfFd2hGiWVdP9kamhoRV/XHFt734XGTonGEmUXPpdlINMyzr PTw1RaTVYLZv1O2Sr0Hg92DKBRxG5N/pwpqL7O6+UcZzuLxKzLqbzKRvC Ax6sK0Vjeq3Xs70hi8giU+wFqvk7665PxAfkTQ/1YRDu9qlrn9+FuoI2f CDOjG8Q8Fvv8OIzvb9Hyjf3LMNcgCD24/yNB4gGbfE06TGj66Y5FmQEkV H4zx2iexb9CX3VCJUsrB/+rWfg3tz7zBP5RO1tNmZsVyGR94PGQ5udz7B 9JB7Ux8DpdicYXY9oZda0bdVyInuZe/VjsnJoRLHY3y6o95bU0NXS3xhZ g==; X-CSE-ConnectionGUID: xuDFvgJCTaaKYWFU+CO/Mw== X-CSE-MsgGUID: TfAWBPG1Q2Wj4gsTIrf5eA== Received: from unknown (HELO jpmta-ob02-os7.noc.sony.co.jp) ([IPv6:2001:cf8:acf:1104::7]) by jpms-ob01-os7.noc.sony.co.jp with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 May 2026 19:20:03 +0900 X-CSE-ConnectionGUID: eNQHig6rTSyeNFsq5eNCUA== X-CSE-MsgGUID: bJzPrHHERBWQt31IwEhhsw== X-IronPort-AV: E=Sophos;i="6.23,241,1770562800"; d="scan'208";a="56041668" Received: from unknown (HELO [127.0.1.1]) ([IPv6:2001:cf8:1:573:0:dddd:6b3e:119e]) by jpmta-ob02-os7.noc.sony.co.jp with ESMTP; 18 May 2026 19:20:03 +0900 From: Shashank Balaji Date: Mon, 18 May 2026 19:19:57 +0900 Subject: [PATCH v5 1/4] soc/tegra: cbb: Move driver registration from pure_initcall to core_initcall Precedence: bulk X-Mailing-List: linux-modules@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260518-acpi_mod_name-v5-1-705ccc430885@sony.com> References: <20260518-acpi_mod_name-v5-0-705ccc430885@sony.com> In-Reply-To: <20260518-acpi_mod_name-v5-0-705ccc430885@sony.com> To: Suzuki K Poulose , James Clark , Alexander Shishkin , Greg Kroah-Hartman , "Rafael J. Wysocki" , Danilo Krummrich , Miguel Ojeda , Boqun Feng , Gary Guo , =?utf-8?q?Bj=C3=B6rn_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 , Thierry Reding , Jonathan Hunter , Mike Leach Cc: Rahul Bukte , Shashank Balaji , 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 X-Mailer: b4 0.16-dev-3bfbc X-Developer-Signature: v=1; a=openpgp-sha256; l=2338; i=shashank.mahadasyam@sony.com; h=from:subject:message-id; bh=cb8qj4xhg343NbZdyo6rpt+QT8xtsS/YnAvcGC2vlak=; b=owGbwMvMwCU2bX1+URVTXyjjabUkhiyu5xfqvy0NverW9HcJ0/+jbb/frg7dt2Tnlxm6R3Qf1 ehr+fDv6ShlYRDjYpAVU2QpVar+tXdF0JKeM68VYeawMoEMYeDiFICJ/FRh+Ml4ZabnJgHe1ruZ 66Rfir73lW7Y/ehHoIfvgbd5bt4z/wQw/E/Mmq3LedrX7smVb8HzxcRfmQT6WPgLH3r16UWy0bK UhywA X-Developer-Key: i=shashank.mahadasyam@sony.com; a=openpgp; fpr=75227BFABDA852A48CCCEB2196AF6F727A028E55 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 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(-) diff --git a/drivers/soc/tegra/cbb/tegra194-cbb.c b/drivers/soc/tegra/cbb/tegra194-cbb.c index ab75d50cc85c..2f69e104c838 100644 --- a/drivers/soc/tegra/cbb/tegra194-cbb.c +++ b/drivers/soc/tegra/cbb/tegra194-cbb.c @@ -2342,7 +2342,7 @@ static int __init tegra194_cbb_init(void) { return platform_driver_register(&tegra194_cbb_driver); } -pure_initcall(tegra194_cbb_init); +core_initcall(tegra194_cbb_init); static void __exit tegra194_cbb_exit(void) { diff --git a/drivers/soc/tegra/cbb/tegra234-cbb.c b/drivers/soc/tegra/cbb/tegra234-cbb.c index fb26f085f691..785072fa4e85 100644 --- a/drivers/soc/tegra/cbb/tegra234-cbb.c +++ b/drivers/soc/tegra/cbb/tegra234-cbb.c @@ -1774,7 +1774,7 @@ static int __init tegra234_cbb_init(void) { return platform_driver_register(&tegra234_cbb_driver); } -pure_initcall(tegra234_cbb_init); +core_initcall(tegra234_cbb_init); static void __exit tegra234_cbb_exit(void) { -- 2.43.0