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

Commit 1d8227c7 authored by Yaniv Gardi's avatar Yaniv Gardi
Browse files

scsi: ufs: Allowing power mode change



Due to M-PHY issues, moving from HS to any other mode or gear or
even Hibern8 causes some un-predicted behavior of the device.
This patch fixes this issues.

Change-Id: I4540e30703aa1212099b2316e158b09e311c7420
Signed-off-by: default avatarYaniv Gardi <ygardi@codeaurora.org>
parent 66619aa7
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -2066,9 +2066,13 @@ static int ufshcd_link_startup(struct ufs_hba *hba)
			goto out;
	} while (ret && retries--);

	if (ret)
	if (ret) {
		/* failed to get the link up... retire */
		goto out;
	} else {
		ufshcd_dme_set(hba, UIC_ARG_MIB(TX_LCC_ENABLE), 0);
		ufshcd_dme_set(hba, UIC_ARG_MIB(TX_LCC_ENABLE), 1);
	}

	/* Include any host controller configuration via UIC commands */
	if (hba->vops && hba->vops->link_startup_notify) {
+5 −0
Original line number Diff line number Diff line
@@ -12,6 +12,11 @@
#ifndef _UNIPRO_H_
#define _UNIPRO_H_

/*
 * M-TX Configuration Attributes
 */
#define TX_LCC_ENABLE		0x2C

/*
 * PHY Adpater attributes
 */