Loading drivers/mmc/host/sdhci-msm.c +8 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ #include <linux/interrupt.h> #include <linux/of.h> #include <linux/reset.h> #include <linux/pinctrl/consumer.h> #include "sdhci-pltfm.h" #include "cqhci.h" Loading Loading @@ -4379,6 +4380,13 @@ static int sdhci_msm_probe(struct platform_device *pdev) } } /* Toggle wlan_en pin to reset SDIO card to correct state */ if (host->mmc->pm_caps & MMC_PM_KEEP_POWER) { pinctrl_pm_select_sleep_state(&pdev->dev); mdelay(1); pinctrl_pm_select_default_state(&pdev->dev); } /* Reset the vendor spec register to power on reset state */ writel_relaxed(CORE_VENDOR_SPEC_POR_VAL, host->ioaddr + msm_offset->core_vendor_spec); Loading Loading
drivers/mmc/host/sdhci-msm.c +8 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ #include <linux/interrupt.h> #include <linux/of.h> #include <linux/reset.h> #include <linux/pinctrl/consumer.h> #include "sdhci-pltfm.h" #include "cqhci.h" Loading Loading @@ -4379,6 +4380,13 @@ static int sdhci_msm_probe(struct platform_device *pdev) } } /* Toggle wlan_en pin to reset SDIO card to correct state */ if (host->mmc->pm_caps & MMC_PM_KEEP_POWER) { pinctrl_pm_select_sleep_state(&pdev->dev); mdelay(1); pinctrl_pm_select_default_state(&pdev->dev); } /* Reset the vendor spec register to power on reset state */ writel_relaxed(CORE_VENDOR_SPEC_POR_VAL, host->ioaddr + msm_offset->core_vendor_spec); Loading