diff options
author | Andy Duan <fugang.duan@nxp.com> | 2017-03-22 10:31:04 +0800 |
---|---|---|
committer | Anson Huang <Anson.Huang@nxp.com> | 2017-06-09 22:17:55 +0800 |
commit | 4acbaf20e017301336a5962007c85e783e42a233 (patch) | |
tree | 1465a80330945dc0dd4d9d45a05c02ec208ce643 /drivers/dma | |
parent | a7fac1a95e1d92c9acd5161047949ed22515b7e2 (diff) |
MLK-14498-10 dma: imx-sdma: fix wrong chn_real_count in cyclic mode
The sdmac->chn_real_count is equal to sdmac->period_len in dma cyclic
mode that is not correct, correct it to real count in current BD transfer.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/imx-sdma.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 140c234e0bf5..d8c8bad15df0 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c @@ -774,12 +774,6 @@ static void sdma_update_channel_loop(struct sdma_channel *sdmac) desc->buf_ptail = desc->buf_tail; desc->buf_tail = (desc->buf_tail + 1) % desc->num_bd; - if (sdmac->peripheral_type == IMX_DMATYPE_UART) { - /* restore mode.count after counter readed */ - sdmac->chn_real_count = bd->mode.count; - bd->mode.count = sdmac->chn_count; - } - if (error) sdmac->status = old_status; /* |