Loading drivers/mmc/host/sdhci-msm.c +12 −8 Original line number Diff line number Diff line Loading @@ -2372,14 +2372,18 @@ static void sdhci_msm_check_power_status(struct sdhci_host *host, u32 req_type) static void sdhci_msm_toggle_cdr(struct sdhci_host *host, bool enable) { if (enable) writel_relaxed((readl_relaxed(host->ioaddr + CORE_DLL_CONFIG) | CORE_CDR_EN), host->ioaddr + CORE_DLL_CONFIG); else writel_relaxed((readl_relaxed(host->ioaddr + CORE_DLL_CONFIG) & ~CORE_CDR_EN), host->ioaddr + CORE_DLL_CONFIG); u32 config; config = readl_relaxed(host->ioaddr + CORE_DLL_CONFIG); if (enable) { config |= CORE_CDR_EN; config &= ~CORE_CDR_EXT_EN; writel_relaxed(config, host->ioaddr + CORE_DLL_CONFIG); } else { config &= ~CORE_CDR_EN; config |= CORE_CDR_EXT_EN; writel_relaxed(config, host->ioaddr + CORE_DLL_CONFIG); } } static unsigned int sdhci_msm_max_segs(void) Loading Loading
drivers/mmc/host/sdhci-msm.c +12 −8 Original line number Diff line number Diff line Loading @@ -2372,14 +2372,18 @@ static void sdhci_msm_check_power_status(struct sdhci_host *host, u32 req_type) static void sdhci_msm_toggle_cdr(struct sdhci_host *host, bool enable) { if (enable) writel_relaxed((readl_relaxed(host->ioaddr + CORE_DLL_CONFIG) | CORE_CDR_EN), host->ioaddr + CORE_DLL_CONFIG); else writel_relaxed((readl_relaxed(host->ioaddr + CORE_DLL_CONFIG) & ~CORE_CDR_EN), host->ioaddr + CORE_DLL_CONFIG); u32 config; config = readl_relaxed(host->ioaddr + CORE_DLL_CONFIG); if (enable) { config |= CORE_CDR_EN; config &= ~CORE_CDR_EXT_EN; writel_relaxed(config, host->ioaddr + CORE_DLL_CONFIG); } else { config &= ~CORE_CDR_EN; config |= CORE_CDR_EXT_EN; writel_relaxed(config, host->ioaddr + CORE_DLL_CONFIG); } } static unsigned int sdhci_msm_max_segs(void) Loading