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

Commit e55e335f authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mmc: sdhci-msm: Fix issue with SD card detect GPIO"

parents 411a5881 b2273214
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -3121,6 +3121,13 @@ static int sdhci_msm_probe(struct platform_device *pdev)
	init_completion(&msm_host->pwr_irq_completion);

	if (gpio_is_valid(msm_host->pdata->status_gpio)) {
		/*
		 * Set up the card detect GPIO in active configuration before
		 * configuring it as an IRQ. Otherwise, it can be in some
		 * weird/inconsistent state resulting in flood of interrupts.
		 */
		sdhci_msm_setup_pins(msm_host->pdata, true);

		ret = mmc_gpio_request_cd(msm_host->mmc,
				msm_host->pdata->status_gpio);
		if (ret) {