]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7237/1: PL330: Fix driver freeze
authorJavi Merino <javi.merino@arm.com>
Fri, 16 Dec 2011 15:04:36 +0000 (16:04 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 23 Dec 2011 22:57:26 +0000 (22:57 +0000)
commit7d8bb85bfce989612b703a471b726c713165443e
tree3a548aa2e0359cb1faa60b865a7962661d745319
parent307d4bc8109d3d1f9634fb32e373c0efd33c0cfe
ARM: 7237/1: PL330: Fix driver freeze

Add a req_running field to the pl330_thread to track which request (if
any) has been submitted to the DMA.  This mechanism replaces the old
one in which we tried to guess the same by looking at the PC of the
DMA, which could prevent the driver from sending more requests if it
didn't guess correctly.

Reference: <1323631637-9610-1-git-send-email-javi.merino@arm.com>

Signed-off-by: Javi Merino <javi.merino@arm.com>
Acked-by: Jassi Brar <jaswinder.singh@linaro.org>
Tested-by: Tushar Behera <tushar.behera@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/common/pl330.c