OSDN Git Service

dmaengine: xdmac: Rework the chaining logic
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 7 May 2015 15:38:10 +0000 (17:38 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 18 May 2015 05:29:35 +0000 (10:59 +0530)
commit0d0ee751f7f7cd7d44eeb596f3b430ed0b178e07
treec41357b2ee6a55490b52cf2b3b81fb8b3f595868
parentf0816a36887b5b6acb387d8a554c5f5ed4069d33
dmaengine: xdmac: Rework the chaining logic

So far, we were setting the NDE bit in our descriptors through some logic to
try to see if we were the last descriptor in the chain.

However, that was turning out to be rather complex to get right, while this
information is also available when we actually chain a new descriptor after an
already existing one.

Simplify this by never setting NDE unless when we actually chain a descriptor.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/at_xdmac.c