mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
scsi: ufs: Allow secondary ufs storage device to probe
Currently we are returning ENODEV if the device is not boot device. In few targets, we have extra UFS device for storage purposes. Allow secondary UFS probing. Change-Id: I67f1f84227292ba18157142171acc4757432c318 Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
This commit is contained in:
parent
3ba33ef735
commit
1accd7bd25
1 changed files with 4 additions and 2 deletions
|
|
@ -993,12 +993,14 @@ static int ufs_qcom_link_startup_notify(struct ufs_hba *hba,
|
|||
struct ufs_qcom_host *host = ufshcd_get_variant(hba);
|
||||
struct phy *phy = host->generic_phy;
|
||||
struct device *dev = hba->dev;
|
||||
struct device_node *np = dev->of_node;
|
||||
|
||||
switch (status) {
|
||||
case PRE_CHANGE:
|
||||
if (strlen(android_boot_dev) && strcmp(android_boot_dev, dev_name(dev))) {
|
||||
if (!of_property_read_bool(np, "secondary-storage") &&
|
||||
strlen(android_boot_dev) &&
|
||||
strcmp(android_boot_dev, dev_name(dev)))
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
if (ufs_qcom_cfg_timers(hba, UFS_PWM_G1, SLOWAUTO_MODE,
|
||||
0, true)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue