diff --git a/arch/arm/boot/dts/overlays/README b/arch/arm/boot/dts/overlays/README index d81d41ac5a208b..980d3583b2a36d 100644 --- a/arch/arm/boot/dts/overlays/README +++ b/arch/arm/boot/dts/overlays/README @@ -441,7 +441,7 @@ Params: overclock_50 Clock (in MHz) to use when the MMC framework force_pio Disable DMA support (default off) pio_limit Number of blocks above which to use DMA - (default 2) + (default 1) debug Enable debug output (default off) diff --git a/drivers/mmc/host/bcm2835-sdhost.c b/drivers/mmc/host/bcm2835-sdhost.c index a03db06d3240f9..d65870a1157f02 100644 --- a/drivers/mmc/host/bcm2835-sdhost.c +++ b/drivers/mmc/host/bcm2835-sdhost.c @@ -699,8 +699,7 @@ static void bcm2835_sdhost_prepare_data(struct bcm2835_host *host, struct mmc_co bcm2835_sdhost_set_transfer_irqs(host); bcm2835_sdhost_write(host, data->blksz, SDHBCT); - if (host->use_dma) - bcm2835_sdhost_write(host, data->blocks, SDHBLC); + bcm2835_sdhost_write(host, host->use_dma ? data->blocks : 0, SDHBLC); BUG_ON(!host->data); }