]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: mv_xor_v2: fix tx_submit() implementation
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 5 May 2017 09:57:48 +0000 (11:57 +0200)
committerVinod Koul <vinod.koul@intel.com>
Sun, 14 May 2017 12:54:43 +0000 (18:24 +0530)
commit094b0b850cefcdaaa5bb0f0dea7f11cb0971b94c
tree06c11d68ea2a2bd13fe6a88a23c5f3d62222c886
parentafe3e332f9765d830577fd37df6ab8576e19dacc
dmaengine: mv_xor_v2: fix tx_submit() implementation

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: 3b017a380a25 ("dmaengine: mv_xor_v2: new driver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/mv_xor_v2.c