DMA: PL08x: fix channel pausing to timeout rather than lockup
authorRussell King - ARM Linux <linux@arm.linux.org.uk>
Thu, 27 Jan 2011 12:37:44 +0000 (12:37 +0000)
committerDan Williams <dan.j.williams@intel.com>
Mon, 31 Jan 2011 06:03:47 +0000 (22:03 -0800)
commit8179661694595eb3a4f2ff9bb0b73acbb7d2f4a9
tree5251a404b7b58f0486f422d3db333b2449e33e5c
parentfb526210b2b961b5d590b89fd8f45c0ca5769688
DMA: PL08x: fix channel pausing to timeout rather than lockup

If a transfer is initiated from memory to a peripheral, then data is
fetched and the channel is marked busy.  This busy status persists until
the HALT bit is set and the queued data has been transfered to the
peripheral.  Waiting indefinitely after setting the HALT bit results in
system lockups.  Timeout this operation, and print an error when this
happens.

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