Skip to content

Commit a32ef81

Browse files
patersoncstorulf
authored andcommitted
mmc: sh_mmcif: Correct TX DMA channel allocation
Commit 27cbd7e ("mmc: sh_mmcif: rework dma channel handling") introduced a typo causing the TX DMA channel allocation to be overwritten by the requested RX DMA channel. Fixes: 27cbd7e ("mmc: sh_mmcif: rework dma channel handling") Signed-off-by: Chris Paterson <chris.paterson2@renesas.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent f00ab14 commit a32ef81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/host/sh_mmcif.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ static void sh_mmcif_request_dma(struct sh_mmcif_host *host)
445445
pdata->slave_id_rx);
446446
} else {
447447
host->chan_tx = dma_request_slave_channel(dev, "tx");
448-
host->chan_tx = dma_request_slave_channel(dev, "rx");
448+
host->chan_rx = dma_request_slave_channel(dev, "rx");
449449
}
450450
dev_dbg(dev, "%s: got channel TX %p RX %p\n", __func__, host->chan_tx,
451451
host->chan_rx);

0 commit comments

Comments
 (0)