Skip to content

Commit 475345e

Browse files
saschahauermiquelraynal
authored andcommitted
mtd: rawnand: gpmi: drop unnecessary flag
The DMA_PREP_INTERRUPT flag is no longer needed by the mxs DMA driver, drop it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
1 parent d443cb2 commit 475345e

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

‎drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c‎

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -926,8 +926,7 @@ static int gpmi_send_command(struct gpmi_nand_data *this)
926926
sg_init_one(sgl, this->cmd_buffer, this->command_length);
927927
dma_map_sg(this->dev, sgl, 1, DMA_TO_DEVICE);
928928
desc = dmaengine_prep_slave_sg(channel,
929-
sgl, 1, DMA_MEM_TO_DEV,
930-
DMA_PREP_INTERRUPT | DMA_CTRL_ACK);
929+
sgl, 1, DMA_MEM_TO_DEV, DMA_CTRL_ACK);
931930
if (!desc)
932931
return -EINVAL;
933932

@@ -997,8 +996,7 @@ static int gpmi_send_data(struct gpmi_nand_data *this, const void *buf, int len)
997996
/* [2] send DMA request */
998997
prepare_data_dma(this, buf, len, DMA_TO_DEVICE);
999998
desc = dmaengine_prep_slave_sg(channel, &this->data_sgl,
1000-
1, DMA_MEM_TO_DEV,
1001-
DMA_PREP_INTERRUPT | DMA_CTRL_ACK);
999+
1, DMA_MEM_TO_DEV, DMA_CTRL_ACK);
10021000
if (!desc)
10031001
return -EINVAL;
10041002

@@ -1036,8 +1034,7 @@ static int gpmi_read_data(struct gpmi_nand_data *this, void *buf, int len)
10361034
/* [2] : send DMA request */
10371035
direct = prepare_data_dma(this, buf, len, DMA_FROM_DEVICE);
10381036
desc = dmaengine_prep_slave_sg(channel, &this->data_sgl,
1039-
1, DMA_DEV_TO_MEM,
1040-
DMA_PREP_INTERRUPT | DMA_CTRL_ACK);
1037+
1, DMA_DEV_TO_MEM, DMA_CTRL_ACK);
10411038
if (!desc)
10421039
return -EINVAL;
10431040

@@ -1150,7 +1147,7 @@ static int gpmi_read_page(struct gpmi_nand_data *this, dma_addr_t payload,
11501147
desc = dmaengine_prep_slave_sg(channel,
11511148
(struct scatterlist *)pio,
11521149
ARRAY_SIZE(pio), DMA_TRANS_NONE,
1153-
DMA_PREP_INTERRUPT | DMA_CTRL_ACK);
1150+
DMA_CTRL_ACK);
11541151
if (!desc)
11551152
return -EINVAL;
11561153

@@ -1168,8 +1165,7 @@ static int gpmi_read_page(struct gpmi_nand_data *this, dma_addr_t payload,
11681165
pio[2] = 0; /* clear GPMI_HW_GPMI_ECCCTRL, disable the BCH. */
11691166
desc = dmaengine_prep_slave_sg(channel,
11701167
(struct scatterlist *)pio, 3,
1171-
DMA_TRANS_NONE,
1172-
DMA_PREP_INTERRUPT | DMA_CTRL_ACK);
1168+
DMA_TRANS_NONE, DMA_CTRL_ACK);
11731169
if (!desc)
11741170
return -EINVAL;
11751171

0 commit comments

Comments
 (0)