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

Commit ef59869d authored by Bao D. Nguyen's avatar Bao D. Nguyen
Browse files

mmc: Enable SD card clock scaling



The SD card clock scaling feature has a dependency on the
MMC_SDHCI_MSM which is not defined. Remove this dependency
so that the SD card clock scaling feature can be enabled.
In addition, fix the SD cards 2.0 initialization caused
by the incorrect clock settings.

Change-Id: I3eaec3546f89b86643b1937764288b3f39578c0e
Signed-off-by: default avatarBao D. Nguyen <nguyenb@codeaurora.org>
parent 4def0475
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -83,7 +83,7 @@ config MMC_TEST

config SDC_QTI
	tristate "Enable QTI specific code in MMC upstream driver"
	depends on QGKI && MMC_SDHCI_MSM
	depends on QGKI
	default n
	help
	  This configuration flag allows adding QTI code in
+2 −2
Original line number Diff line number Diff line
@@ -978,8 +978,8 @@ unsigned mmc_sd_get_max_clock(struct mmc_card *card)
	}
#else
	if (mmc_card_hs(card)) {
		if (max_dtr > card->sw_caps.uhs_max_dtr)
			max_dtr = card->sw_caps.uhs_max_dtr;
		if (max_dtr > card->sw_caps.hs_max_dtr)
			max_dtr = card->sw_caps.hs_max_dtr;
	} else if (max_dtr > card->csd.max_dtr) {
		max_dtr = card->csd.max_dtr;
	}
+1 −1
Original line number Diff line number Diff line
@@ -1022,7 +1022,7 @@ config MMC_SDHCI_AM654

config SDC_QTI
	tristate "Enable QTI specific code in MMC upstream driver"
	depends on QGKI && MMC_SDHCI_MSM
	depends on QGKI
	default n
	help
	  This configuration flag allows adding QTI code in