]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: PL08x: introduce 'phychan_hold' to hold on to physical channels
authorRussell King - ARM Linux <linux@arm.linux.org.uk>
Mon, 3 Jan 2011 22:45:17 +0000 (22:45 +0000)
committerDan Williams <dan.j.williams@intel.com>
Wed, 5 Jan 2011 03:16:14 +0000 (19:16 -0800)
commit591493a69d4d5ae3d80113d27f54e1817fd282eb
tree3a59272bc4555eae854a012940a36f80a8f4c1a5
parentaedb5301cd801c99d0f2b4ddd76574eec3e62781
ARM: PL08x: introduce 'phychan_hold' to hold on to physical channels

Introduce 'phychan_hold' to hold on to physical DMA channels while we're
preparing a new descriptor for it.  This will be incremented when we
allocate a physical channel and set the MUX registers during the
preparation of the TXD, and will only be decremented when the TXD is
submitted.

This prevents the physical channel being given up before the new TXD
is placed on the queue.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/amba-pl08x.c
include/linux/amba/pl08x.h