Skip to content

Commit d45f47a

Browse files
committed
Merge tag 'mmc-v5.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc
Pull MMC fixes from Ulf Hansson: - Override DLL_CONFIG only with valid values in sdhci-msm - Get rid of of_match_ptr() macro to fix warning in owl-mmc - Limit segments to 1 to fix meson-gx G12A/G12B SoCs * tag 'mmc-v5.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc: mmc: sdhci-msm: Override DLL_CONFIG only if the valid value is supplied mmc: owl-mmc: Get rid of of_match_ptr() macro mmc: meson-gx: limit segments to 1 when dram-access-quirk is needed
2 parents 42f8204 + 3ec2d51 commit d45f47a

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

drivers/mmc/host/meson-gx-mmc.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,9 +1146,11 @@ static int meson_mmc_probe(struct platform_device *pdev)
11461146

11471147
mmc->caps |= MMC_CAP_CMD23;
11481148
if (host->dram_access_quirk) {
1149+
/* Limit segments to 1 due to low available sram memory */
1150+
mmc->max_segs = 1;
11491151
/* Limit to the available sram memory */
1150-
mmc->max_segs = SD_EMMC_SRAM_DATA_BUF_LEN / mmc->max_blk_size;
1151-
mmc->max_blk_count = mmc->max_segs;
1152+
mmc->max_blk_count = SD_EMMC_SRAM_DATA_BUF_LEN /
1153+
mmc->max_blk_size;
11521154
} else {
11531155
mmc->max_blk_count = CMD_CFG_LENGTH_MASK;
11541156
mmc->max_segs = SD_EMMC_DESC_BUF_LEN /

drivers/mmc/host/owl-mmc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ MODULE_DEVICE_TABLE(of, owl_mmc_of_match);
689689
static struct platform_driver owl_mmc_driver = {
690690
.driver = {
691691
.name = "owl_mmc",
692-
.of_match_table = of_match_ptr(owl_mmc_of_match),
692+
.of_match_table = owl_mmc_of_match,
693693
},
694694
.probe = owl_mmc_probe,
695695
.remove = owl_mmc_remove,

drivers/mmc/host/sdhci-msm.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,8 +618,9 @@ static int msm_init_cm_dll(struct sdhci_host *host)
618618
config &= ~CORE_CLK_PWRSAVE;
619619
writel_relaxed(config, host->ioaddr + msm_offset->core_vendor_spec);
620620

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);
623624

624625
if (msm_host->use_14lpp_dll_reset) {
625626
config = readl_relaxed(host->ioaddr +

0 commit comments

Comments
 (0)