]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: PL08x: Rework LLI handling to be less fragile
authorTomasz Figa <tomasz.figa@gmail.com>
Sun, 11 Aug 2013 17:59:15 +0000 (19:59 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 2 Sep 2013 06:19:56 +0000 (11:49 +0530)
commitb3fd3874ff9bcc44c83c4f3d9a5c50950277882e
treef34a53c16eba8d9ab5094ba4247977d041b144a7
parent3d1ca9dc20e7f9100c3c020a00884bc4a9130e42
dmaengine: PL08x: Rework LLI handling to be less fragile

Currently memory allocated for LLIs is casted to an array of structs,
which is fragile and also limits the driver to a single, predefined LLI
layout, while there are some variants of PL08x, which have more fields
in LLI (namely PL080S with its extra CCTL2).

This patch makes LLIs a sequence of 32-bit words, which is just filled
with appropriate values in appropriate order and padded with required
amount of dummy words (currently zero, but PL080S will make better use
of this).

Suggested-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/amba-pl08x.c