]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
staging: apf: Correct sg list length assignment in apf dma
authorMichael Gill <michael.gill@xilinx.com>
Tue, 15 May 2018 20:13:56 +0000 (13:13 -0700)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 16 May 2018 06:47:35 +0000 (08:47 +0200)
commit6b8ad2b85bb2279d13a436396238f0fd150138d1
treef8d9645f14d11a2f5cdb85e98e463ea460b19e96
parent5fa547edc7709e35d910e829d7a3d8c2ed061d99
staging: apf: Correct sg list length assignment in apf dma

When using DMABUFs in the apf dma driver, there were specific
lengths that resulted in the transfer length being incorrectly
assigned.  This patch corrects that by assigning lengths correctly
when the sg descriptor length is smaller than the transfer size.

Signed-off-by: Michael Gill <michael.gill@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/staging/apf/xilinx-dma-apf.c
drivers/staging/apf/xlnk.h