]> git.karo-electronics.de Git - linux-beck.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)
commitabb959f8a3f125a6e6641abbd020111516dfc8f6
tree3a548aa2e0359cb1faa60b865a7962661d745319
parentba90c516bae79b5f8184d915bfce7eb280af61b1
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