dmaengine: PL08x: rejig physical channel allocation
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 26 May 2012 12:54:15 +0000 (13:54 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 1 Jul 2012 13:15:57 +0000 (14:15 +0100)
commita5a488db427ef1ba637163d1a699b170c20d9789
treec78ff3401fdb4c09609d4c528767043da77a1532
parentc33b644cb31899265ec5102a4ed45c44269dde95
dmaengine: PL08x: rejig physical channel allocation

Rework the physical channel allocation mechanism to only allocate
physical channels to virtual channels when they're about to be used.
This eliminates all the complexity with holding channels while
descriptors are being prepared, which is completely unnecessary.

This also brings this driver to a state where the generic virtual DMA
code can be used with this driver, and opens up the possibility of
properly scheduling and prioritorising physical DMA channels to
virtual DMA channels.

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/dma/amba-pl08x.c