Skip to content

Commit

Permalink
bcm2835-sdhost: Clear HBLC for PIO mode
Browse files Browse the repository at this point in the history
Also update pio_limit default in overlay README.
  • Loading branch information
Phil Elwell authored and popcornmix committed Jul 3, 2015
1 parent 1674fcd commit f72606a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/overlays/README
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
3 changes: 1 addition & 2 deletions drivers/mmc/host/bcm2835-sdhost.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit f72606a

Please sign in to comment.