Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a7c12d01 authored by Huang Shijie's avatar Huang Shijie Committed by Brian Norris
Browse files

mtd: gpmi: use DMA channel 0 for all the nand chips



We only have one DMA channel : the channel 0.
Use DMA channel 0 to access all the nand chips.

Signed-off-by: default avatarHuang Shijie <b32955@freescale.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent d159d8b7
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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? */