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

Commit 9222dfa6 authored by Yaniv Gardi's avatar Yaniv Gardi
Browse files

scsi: ufs: implement a quirk of delay when switching gear



This quirk is required in order to have the switching gear procedure
to end successfully.

Change-Id: Ic5c2f53de4d4b5c1c9542a0cf4f7fbedbe3e63a6
Signed-off-by: default avatarYaniv Gardi <ygardi@codeaurora.org>
parent af8310c3
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1932,7 +1932,7 @@ static int ufshcd_config_max_pwr_mode(struct ufs_hba *hba)
	int ret;

	if (hba->quirks & UFSHCD_QUIRK_BROKEN_PWR_MODE_CHANGE)
		return 0;
		msleep(1000);

	/* Get the connected lane count */
	ufshcd_dme_get(hba, UIC_ARG_MIB(PA_CONNECTEDRXDATALANES), &lanes[RX]);
@@ -2015,6 +2015,9 @@ static int ufshcd_config_max_pwr_mode(struct ufs_hba *hba)
				POST_CHANGE, NULL, &dev_required_params);
	}

	if (hba->quirks & UFSHCD_QUIRK_BROKEN_PWR_MODE_CHANGE)
		msleep(1000);

	return ret;
}