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

Commit 9a6a9269 authored by Yaniv Gardi's avatar Yaniv Gardi
Browse files

scsi: ufs: relocating power change routine



According to JDEC220 the link-startup command and sending a NOP query
should be one after the other.
This is why calling the power change routine should be relocated.

Change-Id: I756fff9a430f11dd9806dee442dbd0a5d7820b37
Signed-off-by: default avatarYaniv Gardi <ygardi@codeaurora.org>
parent 9222dfa6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3633,7 +3633,6 @@ static int ufshcd_probe_hba(struct ufs_hba *hba)

	/* UniPro link is active now */
	ufshcd_set_link_active(hba);
	ufshcd_config_max_pwr_mode(hba);

	ret = ufshcd_verify_dev_init(hba);
	if (ret)
@@ -3648,6 +3647,8 @@ static int ufshcd_probe_hba(struct ufs_hba *hba)
	ufshcd_force_reset_auto_bkops(hba);
	hba->ufshcd_state = UFSHCD_STATE_OPERATIONAL;

	ufshcd_config_max_pwr_mode(hba);

	/*
	 * If we are in error handling context or in power management callbacks
	 * context, no need to scan the host