diff options
author | Andy Duan <fugang.duan@nxp.com> | 2017-03-22 10:31:04 +0800 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2019-02-12 10:26:03 +0800 |
commit | d008c6af9ef25abe9244c0c742ed776c456cff03 (patch) | |
tree | c3713bd4780f3830994bf4a07940d3b0f6491195 /drivers/dma/imx-sdma.c | |
parent | a38ead864a5261249dc7bf20a1fd06eb30154604 (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/imx-sdma.c')
-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 aaaa249db6a5..c46d243ffb1d 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; /* |