Commit 19e0783a authored by Chris Paterson's avatar Chris Paterson Committed by Greg Kroah-Hartman

mmc: sh_mmcif: Correct TX DMA channel allocation

commit a32ef81c upstream.

Commit 27cbd7e8 ("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: 27cbd7e8 ("mmc: sh_mmcif: rework dma channel handling")
Signed-off-by: default avatarChris Paterson <chris.paterson2@renesas.com>
Acked-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c045105c
...@@ -445,7 +445,7 @@ static void sh_mmcif_request_dma(struct sh_mmcif_host *host) ...@@ -445,7 +445,7 @@ static void sh_mmcif_request_dma(struct sh_mmcif_host *host)
pdata->slave_id_rx); pdata->slave_id_rx);
} else { } else {
host->chan_tx = dma_request_slave_channel(dev, "tx"); host->chan_tx = dma_request_slave_channel(dev, "tx");
host->chan_tx = dma_request_slave_channel(dev, "rx"); host->chan_rx = dma_request_slave_channel(dev, "rx");
} }
dev_dbg(dev, "%s: got channel TX %p RX %p\n", __func__, host->chan_tx, dev_dbg(dev, "%s: got channel TX %p RX %p\n", __func__, host->chan_tx,
host->chan_rx); host->chan_rx);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment