mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 09:12:39 +00:00
0b5d87fd30
As usual, this patches were taken (and rebased) from https://github.com/raspberrypi/linux/commits/rpi-4.1.y Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> SVN-Revision: 46853
35 lines
1.2 KiB
Diff
35 lines
1.2 KiB
Diff
From c4b4cd3f5e0c6be67124fac4a7bbb5fb45de616c Mon Sep 17 00:00:00 2001
|
|
From: Phil Elwell <phil@raspberrypi.org>
|
|
Date: Wed, 1 Jul 2015 12:51:52 +0100
|
|
Subject: [PATCH 101/171] bcm2835-sdhost: Clear HBLC for PIO mode
|
|
|
|
Also update pio_limit default in overlay README.
|
|
---
|
|
arch/arm/boot/dts/overlays/README | 2 +-
|
|
drivers/mmc/host/bcm2835-sdhost.c | 3 +--
|
|
2 files changed, 2 insertions(+), 3 deletions(-)
|
|
|
|
--- a/arch/arm/boot/dts/overlays/README
|
|
+++ b/arch/arm/boot/dts/overlays/README
|
|
@@ -441,7 +441,7 @@ Params: overclock_50 Clock (
|
|
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)
|
|
|
|
--- a/drivers/mmc/host/bcm2835-sdhost.c
|
|
+++ b/drivers/mmc/host/bcm2835-sdhost.c
|
|
@@ -699,8 +699,7 @@ static void bcm2835_sdhost_prepare_data(
|
|
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);
|
|
}
|