projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
042bc9c
)
mtd: atmel_nand: fix support for CPUs that do not support DMA access
author
Hong Xu
<hong.xu@atmel.com>
Wed, 30 Mar 2011 08:26:41 +0000
(16:26 +0800)
committer
Artem Bityutskiy
<Artem.Bityutskiy@nokia.com>
Fri, 1 Apr 2011 13:44:32 +0000
(16:44 +0300)
use_dma was always "1" even if the CPU does not support DMA
Tested on AT91SAM9261EK by Jean-Christophe PLAGNIOL-VILLARD
Reported-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Hong Xu <hong.xu@atmel.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/nand/atmel_nand.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mtd/nand/atmel_nand.c
b/drivers/mtd/nand/atmel_nand.c
index 7e88a801669cd0cb1a20deeaa9b8254fb9482fdf..f254fa636afc25d374ce4af55bc2a84791a40305 100644
(file)
--- a/
drivers/mtd/nand/atmel_nand.c
+++ b/
drivers/mtd/nand/atmel_nand.c
@@
-599,7
+599,10
@@
static int __init atmel_nand_probe(struct platform_device *pdev)
nand_chip->options |= NAND_USE_FLASH_BBT;
}
- if (cpu_has_dma() && use_dma) {
+ if (!cpu_has_dma())
+ use_dma = 0;
+
+ if (use_dma) {
dma_cap_mask_t mask;
dma_cap_zero(mask);
This page took
0.026557 seconds
and
5
git commands to generate.