diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-07-20 09:43:40 +0200 | 
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-07-20 09:43:40 +0200 | 
| commit | c4d41d00552754cc8cdd66a52da9b7c203884d49 (patch) | |
| tree | 60be0f3d543ad6d300a033d91dc313bc595cd737 /drivers/mmc | |
| parent | fadbfc38dde26d31e901c3c85cf01332cb6a2224 (diff) | |
| parent | ba47d845d715a010f7b51f6f89bae32845e6acb7 (diff) | |
| download | linux-c4d41d00552754cc8cdd66a52da9b7c203884d49.tar.bz2 | |
Merge v5.8-rc6 into char-misc-next
We need the char/misc fixes in here as well.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/mmc')
| -rw-r--r-- | drivers/mmc/host/meson-gx-mmc.c | 6 | ||||
| -rw-r--r-- | drivers/mmc/host/owl-mmc.c | 2 | ||||
| -rw-r--r-- | drivers/mmc/host/sdhci-msm.c | 5 | 
3 files changed, 8 insertions, 5 deletions
| diff --git a/drivers/mmc/host/meson-gx-mmc.c b/drivers/mmc/host/meson-gx-mmc.c index 7eb38d7482c6..08a3b1c05acb 100644 --- a/drivers/mmc/host/meson-gx-mmc.c +++ b/drivers/mmc/host/meson-gx-mmc.c @@ -1146,9 +1146,11 @@ static int meson_mmc_probe(struct platform_device *pdev)  	mmc->caps |= MMC_CAP_CMD23;  	if (host->dram_access_quirk) { +		/* Limit segments to 1 due to low available sram memory */ +		mmc->max_segs = 1;  		/* Limit to the available sram memory */ -		mmc->max_segs = SD_EMMC_SRAM_DATA_BUF_LEN / mmc->max_blk_size; -		mmc->max_blk_count = mmc->max_segs; +		mmc->max_blk_count = SD_EMMC_SRAM_DATA_BUF_LEN / +				     mmc->max_blk_size;  	} else {  		mmc->max_blk_count = CMD_CFG_LENGTH_MASK;  		mmc->max_segs = SD_EMMC_DESC_BUF_LEN / diff --git a/drivers/mmc/host/owl-mmc.c b/drivers/mmc/host/owl-mmc.c index 5e20c099fe03..df43f42855e2 100644 --- a/drivers/mmc/host/owl-mmc.c +++ b/drivers/mmc/host/owl-mmc.c @@ -689,7 +689,7 @@ MODULE_DEVICE_TABLE(of, owl_mmc_of_match);  static struct platform_driver owl_mmc_driver = {  	.driver = {  		.name	= "owl_mmc", -		.of_match_table = of_match_ptr(owl_mmc_of_match), +		.of_match_table = owl_mmc_of_match,  	},  	.probe		= owl_mmc_probe,  	.remove		= owl_mmc_remove, diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c index b277dd7fbdb5..c0d58e9fcc33 100644 --- a/drivers/mmc/host/sdhci-msm.c +++ b/drivers/mmc/host/sdhci-msm.c @@ -618,8 +618,9 @@ static int msm_init_cm_dll(struct sdhci_host *host)  	config &= ~CORE_CLK_PWRSAVE;  	writel_relaxed(config, host->ioaddr + msm_offset->core_vendor_spec); -	config = msm_host->dll_config; -	writel_relaxed(config, host->ioaddr + msm_offset->core_dll_config); +	if (msm_host->dll_config) +		writel_relaxed(msm_host->dll_config, +				host->ioaddr + msm_offset->core_dll_config);  	if (msm_host->use_14lpp_dll_reset) {  		config = readl_relaxed(host->ioaddr + |