Skip to content

Commit cca2e06

Browse files
committed
Merge tag 'mmc-v5.0-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc
Pull MMC host fixes from Ulf Hansson: - mediatek: Fix incorrect register write for tunings - bcm2835: Fixup leakage of DMA channel on probe errors * tag 'mmc-v5.0-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc: mmc: mediatek: fix incorrect register setting of hs400_cmd_int_delay mmc: bcm2835: Fix DMA channel leak on probe error
2 parents 520fac0 + 3751e00 commit cca2e06

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

drivers/mmc/host/bcm2835.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1431,6 +1431,8 @@ static int bcm2835_probe(struct platform_device *pdev)
14311431

14321432
err:
14331433
dev_dbg(dev, "%s -> err %d\n", __func__, ret);
1434+
if (host->dma_chan_rxtx)
1435+
dma_release_channel(host->dma_chan_rxtx);
14341436
mmc_free_host(mmc);
14351437

14361438
return ret;

drivers/mmc/host/mtk-sd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ static void msdc_set_mclk(struct msdc_host *host, unsigned char timing, u32 hz)
846846

847847
if (timing == MMC_TIMING_MMC_HS400 &&
848848
host->dev_comp->hs400_tune)
849-
sdr_set_field(host->base + PAD_CMD_TUNE,
849+
sdr_set_field(host->base + tune_reg,
850850
MSDC_PAD_TUNE_CMDRRDLY,
851851
host->hs400_cmd_int_delay);
852852
dev_dbg(host->dev, "sclk: %d, timing: %d\n", host->mmc->actual_clock,

0 commit comments

Comments
 (0)