Skip to content

Commit 01e7462

Browse files
jiegan0107shashim-quic
authored andcommitted
QCLINUX: qcom-dcc: use late_initcall and build as built-in for boot debug
The DCC device stub driver was registered with module_init(), which runs during the initcall sequence before late_initcall(). The DCC hardware depends on resources that are not yet available at that point, causing the driver to fail silently during early boot. Switch to late_initcall() so the driver initialises after all subsystem dependencies are ready. Remove the module_exit() registration since the driver is now built-in only. Update qcom_debug.config to build CONFIG_QCOM_DCC and CONFIG_QCOM_DCC_DEV as built-in (=y) instead of loadable modules (=m) to match the late_initcall() requirement and allow early boot debugging. Signed-off-by: Jie Gan <jie.gan@oss.qualcomm.com>
1 parent 8afff78 commit 01e7462

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CONFIG_QCOM_DCC=m
2-
CONFIG_QCOM_DCC_DEV=m
1+
CONFIG_QCOM_DCC=y
2+
CONFIG_QCOM_DCC_DEV=y
33
CONFIG_QCOM_MEMORY_DUMP_V2=y
44
CONFIG_QCOM_MEMORY_DUMP_DEV=m

drivers/misc/qcom-dcc-dev.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,6 @@ static void __exit dcc_dev_exit(void)
959959
platform_device_unregister(dcc_pdev);
960960
}
961961

962-
module_init(dcc_dev_init);
963-
module_exit(dcc_dev_exit);
962+
late_initcall(dcc_dev_init);
964963
MODULE_LICENSE("GPL");
965964
MODULE_DESCRIPTION("Qualcomm Technologies Inc. DCC driver, device stub");

0 commit comments

Comments
 (0)