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

Commit d2006389 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mmc: sdhci-msm: Ensure larger discard size"

parents 0b5c2595 930e70e9
Loading
Loading
Loading
Loading
+15 −2
Original line number Diff line number Diff line
@@ -3214,8 +3214,7 @@ static int sdhci_msm_probe(struct platform_device *pdev)

	msm_host->mmc->caps |= MMC_CAP_AGGRESSIVE_PM;
	msm_host->mmc->caps |= MMC_CAP_WAIT_WHILE_BUSY;

	msm_host->pltfm_init_done = true;
	msm_host->mmc->caps |= MMC_CAP_NEED_RSP_BUSY;

#if defined(CONFIG_SDC_QTI)
	msm_host->mmc->caps2 |= MMC_CAP2_CLK_SCALE;
@@ -3233,6 +3232,20 @@ static int sdhci_msm_probe(struct platform_device *pdev)
		goto pm_runtime_disable;
	sdhci_msm_set_regulator_caps(msm_host);

	/*
	 * Ensure larger discard size by setting max_busy_timeout.
	 * This has to set only after sdhci_add_host so that our
	 * value won't be over-written.
	 */
	host->mmc->max_busy_timeout = 0;

	/*
	 * Set platfm_init_done only after sdhci_add_host().
	 * So that we don't turn off vqmmc while we reset sdhc as
	 * part of sdhci_add_host().
	 */
	msm_host->pltfm_init_done = true;

	pm_runtime_mark_last_busy(&pdev->dev);
	pm_runtime_put_autosuspend(&pdev->dev);