]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: Actions: get rid of bit fields from dma descriptor
authorAmit Singh Tomar <amittomer25@gmail.com>
Sun, 19 Jul 2020 17:41:59 +0000 (23:11 +0530)
committerVinod Koul <vkoul@kernel.org>
Mon, 27 Jul 2020 09:13:08 +0000 (14:43 +0530)
commit35f56f78cfd0688e272e237b30d14c1895311ad3
treeaa82ab829c87bafc35e13136f06270de6c811d60
parent569468f818230eee187aa0ccb5b35d1867a93b65
dmaengine: Actions: get rid of bit fields from dma descriptor

At the moment, Driver uses bit fields to describe registers of the DMA
descriptor structure that makes it less portable and maintainable, and
Andre suugested(and even sketched important bits for it) to make use of
array to describe this DMA descriptors instead. It gives the flexibility
while extending support for other platform such as Actions S700.

This commit removes the "owl_dma_lli_hw" (that includes bit-fields) and
uses array to describe DMA descriptor.

Suggested-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Amit Singh Tomar <amittomer25@gmail.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/1595180527-11320-3-git-send-email-amittomer25@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/owl-dma.c