]> 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)
commit2e3bd36751c4fc07b791bf93a5c9becdb1126ae8
treef34a53c16eba8d9ab5094ba4247977d041b144a7
parent6c712b559764922168fea1046d04bda1312eea73
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