projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d159d8b
)
mtd: gpmi: use DMA channel 0 for all the nand chips
author
Huang Shijie
<b32955@freescale.com>
Tue, 27 Aug 2013 09:29:05 +0000
(17:29 +0800)
committer
Brian Norris
<computersforpeace@gmail.com>
Thu, 7 Nov 2013 07:33:02 +0000
(23:33 -0800)
We only have one DMA channel : the channel 0.
Use DMA channel 0 to access all the nand chips.
Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/gpmi-nand/gpmi-nand.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
index 37508eb350d05864e5f25b0a693824912eef0b1e..a5c60c4a62b58a491c7e252f5c1f74e092d4a230 100644
(file)
--- a/
drivers/mtd/nand/gpmi-nand/gpmi-nand.c
+++ b/
drivers/mtd/nand/gpmi-nand/gpmi-nand.c
@@
-357,9
+357,8
@@
int common_nfc_set_geometry(struct gpmi_nand_data *this)
struct dma_chan *get_dma_chan(struct gpmi_nand_data *this)
{
- int chipnr = this->current_chip;
-
- return this->dma_chans[chipnr];
+ /* We use the DMA channel 0 to access all the nand chips. */
+ return this->dma_chans[0];
}
/* Can we use the upper's buffer directly for DMA? */