Re: [PATCH V1] scsi: ufs: Get boot device storage type from command line

From: Bart Van Assche
Date: Wed Jul 27 2022 - 14:49:23 EST


On 7/27/22 01:28, Chetan C R wrote:
diff --git a/drivers/ufs/Kconfig b/drivers/ufs/Kconfig
index 90226f7..9d2f84e 100644
--- a/drivers/ufs/Kconfig
+++ b/drivers/ufs/Kconfig
@@ -9,6 +9,7 @@ menuconfig SCSI_UFSHCD
select PM_DEVFREQ
select DEVFREQ_GOV_SIMPLE_ONDEMAND
select NLS
+ select UFS_QCOM_CMDLINE if ARCH_QCOM
help
Enables support for UFS (Universal Flash Storage) host controllers.
A UFS host controller is an electronic component that is able to

[ ... ]

+__setup("androidboot.bootdevice=", get_android_boot_dev_v3);

How can this work since __setup() declarations should occur in the core kernel and since the ufshcd driver can be built as a kernel module?

Thanks,

Bart.