]> 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)
commita97b2afaa67c7f572df59b6f4effdaedff08c7dc
tree3a548aa2e0359cb1faa60b865a7962661d745319
parentaf88e49410d27a441a9bd5b3d7e2fd3c589b552c
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