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

Commit 1d7e518b authored by Ankit Jain's avatar Ankit Jain Committed by Gerrit - the friendly Code Review server
Browse files

mmc: sdhci-msm: flush mmc detect work asynchronously.



Block device should be available before mounting of root
device. In some cases block device is not available at the
time of root device mounting because mmc detect work is not
completed by that time which is causing mount failure. This
change flush mmc detect work asynchronously after device probe
and before mounting of root device, async_synchronize_full
will make sure all asynchronous function calls have been done.

Change-Id: I22be6c4b528c952fd73ea5d5e8ba533ce7165f86
Signed-off-by: default avatarAnkit Jain <jankit@codeaurora.org>
parent 0d55bf07
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4948,6 +4948,9 @@ static int sdhci_msm_probe(struct platform_device *pdev)
		       mmc_hostname(host->mmc), __func__, ret);
		device_remove_file(&pdev->dev, &msm_host->auto_cmd21_attr);
	}
	if (sdhci_msm_is_bootdevice(&pdev->dev))
		mmc_flush_detect_work(host->mmc);

	/* Successful initialization */
	goto out;