mirror of
https://github.com/joel16/android_kernel_sony_msm8994.git
synced 2024-11-27 06:01:12 +00:00
scsi: ufs-msm: probe UFS only if it is the boot device
Boot device can be either UFS or eMMC which means if eMMC is the boot device, probing UFS device is not desirable as it's not going to be used after probing. Kernel command line parameter "androidboot.bootdevice" tells the kernel about the boot device so look at this boot device parameter to know whether to probe UFS device or not. Change-Id: I4f2b4ce56276658e4c72790b889d5a38ec78e518 Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
This commit is contained in:
parent
aa5e73a6c2
commit
9532a95508
@ -1022,6 +1022,9 @@ static int ufs_msm_init(struct ufs_hba *hba)
|
||||
struct device *dev = hba->dev;
|
||||
struct ufs_msm_host *host;
|
||||
|
||||
if (strlen(android_boot_dev) && strcmp(android_boot_dev, dev_name(dev)))
|
||||
return -ENODEV;
|
||||
|
||||
host = devm_kzalloc(dev, sizeof(*host), GFP_KERNEL);
|
||||
if (!host) {
|
||||
err = -ENOMEM;
|
||||
|
Loading…
Reference in New Issue
Block a user