Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3d2ed87d authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "scsi: ufs: Allow secondary ufs storage device to probe"

parents cdee44a8 1accd7bd
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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)) {