diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2006-08-30 10:14:56 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-09-16 06:57:49 -0400 |
commit | db53f28b3a6d9338cca1b7e917dc063ac99e1871 (patch) | |
tree | e75578ec00cfe0fa8a3449dc97038e3bb621f01f /drivers/mmc/mmci.c | |
parent | 132919ba80ad207755fe271277bfefff865a54fe (diff) |
[MMC] Add multi block-write capability
Add a capability flag for drivers to set when they can perform multi-
block transfers to cards _and_ correctly report the number of bytes
transferred should an error occur.
The last point is very important - if a driver reports more bytes than
were actually accepted by the card and an error occurs, there is the
possibility for data loss.
Pierre Ossman provided the patch for wbsd and sdhci.
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/mmc/mmci.c')
-rw-r--r-- | drivers/mmc/mmci.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mmc/mmci.c b/drivers/mmc/mmci.c index 8419489e7744..2b5a0cc9ea56 100644 --- a/drivers/mmc/mmci.c +++ b/drivers/mmc/mmci.c | |||
@@ -509,6 +509,7 @@ static int mmci_probe(struct amba_device *dev, void *id) | |||
509 | mmc->f_min = (host->mclk + 511) / 512; | 509 | mmc->f_min = (host->mclk + 511) / 512; |
510 | mmc->f_max = min(host->mclk, fmax); | 510 | mmc->f_max = min(host->mclk, fmax); |
511 | mmc->ocr_avail = plat->ocr_mask; | 511 | mmc->ocr_avail = plat->ocr_mask; |
512 | mmc->caps = MMC_CAP_MULTIWRITE; | ||
512 | 513 | ||
513 | /* | 514 | /* |
514 | * We can do SGIO | 515 | * We can do SGIO |