Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: sdhci-msm: Override DLL_CONFIG only if the valid value is supplied

During DLL initialization, the DLL_CONFIG register value would be
updated with the value supplied from the device-tree.

Override this register only if a valid value is supplied.

Fixes: 03591160ca19 ("mmc: sdhci-msm: Read and use DLL Config property from device tree file")
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
Link: https://lore.kernel.org/r/1594213888-2780-1-git-send-email-vbadigan@codeaurora.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Veerabhadrarao Badiganti and committed by
Ulf Hansson
3ec2d511 f8884711

+3 -2
+3 -2
drivers/mmc/host/sdhci-msm.c
··· 618 618 config &= ~CORE_CLK_PWRSAVE; 619 619 writel_relaxed(config, host->ioaddr + msm_offset->core_vendor_spec); 620 620 621 - config = msm_host->dll_config; 622 - writel_relaxed(config, host->ioaddr + msm_offset->core_dll_config); 621 + if (msm_host->dll_config) 622 + writel_relaxed(msm_host->dll_config, 623 + host->ioaddr + msm_offset->core_dll_config); 623 624 624 625 if (msm_host->use_14lpp_dll_reset) { 625 626 config = readl_relaxed(host->ioaddr +