diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-05-05 12:57:48 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-06-14 16:05:57 +0300 |
commit | b2c8bb06bc8322951e426cbafe45deae36a124da (patch) | |
tree | 59d75504dc8db2a6f1d42f9e250399df304a88cb /drivers/dma/sun6i-dma.c | |
parent | 0d0918504a96d406d1a8beedab47bfb93c01ee67 (diff) | |
download | linux-b2c8bb06bc8322951e426cbafe45deae36a124da.tar.xz |
dmaengine: mv_xor_v2: fix tx_submit() implementation
commit 44d5887a8bf1e86915c8ff647337cb138149da82 upstream.
The mv_xor_v2_tx_submit() gets the next available HW descriptor by
calling mv_xor_v2_get_desq_write_ptr(), which reads a HW register
telling the next available HW descriptor. This was working fine when HW
descriptors were issued for processing directly in tx_submit().
However, as part of the review process of the driver, a change was
requested to move the actual kick-off of HW descriptors processing to
->issue_pending(). Due to this, reading the HW register to know the next
available HW descriptor no longer works.
So instead of using this HW register, we implemented a software index
pointing to the next available HW descriptor.
Fixes: 19a340b1a820 ("dmaengine: mv_xor_v2: new driver")
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/dma/sun6i-dma.c')
0 files changed, 0 insertions, 0 deletions