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

Commit cccfa88f authored by Asutosh Das's avatar Asutosh Das
Browse files

Revert "UPSTREAM: mmc: sdhci-msm: Don't enable PWRSAVE_DLL for certain sdhc hosts"



This reverts commit dfc165df.

This is a suspected change that's breaking suspend/resume in mainline.
Hence, revert this until the issue is fixed.

Change-Id: Ia92d64ba3121e01770b680478af1c2a65b49f48c
Signed-off-by: default avatarAsutosh Das <asutoshd@codeaurora.org>
parent 29c17ed5
Loading
Loading
Loading
Loading
+3 −15
Original line number Diff line number Diff line
@@ -1169,21 +1169,9 @@ static int sdhci_msm_cm_dll_sdc4_calibration(struct sdhci_host *host)
		goto out;
	}

	/*
	 * Set CORE_PWRSAVE_DLL bit in CORE_VENDOR_SPEC3.
	 * When MCLK is gated OFF, it is not gated for less than 0.5us
	 * and MCLK must be switched on for at-least 1us before DATA
	 * starts coming. Controllers with 14lpp and later tech DLL cannot
	 * guarantee above requirement. So PWRSAVE_DLL should not be
	 * turned on for host controllers using this DLL.
	 */
	if (!msm_host->use_14lpp_dll_reset) {
		config = readl_relaxed(host->ioaddr +
				msm_offset->core_vendor_spec3);
	config = readl_relaxed(host->ioaddr + msm_offset->core_vendor_spec3);
	config |= CORE_PWRSAVE_DLL;
		writel_relaxed(config, host->ioaddr +
				msm_offset->core_vendor_spec3);
	}
	writel_relaxed(config, host->ioaddr + msm_offset->core_vendor_spec3);

	/*
	 * Drain writebuffer to ensure above DLL calibration