]> git.baikalelectronics.ru Git - kernel.git/commit
drm/armada: fix missing overlay wake-up
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 15 Jun 2015 09:13:29 +0000 (10:13 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 15 Jul 2015 15:45:29 +0000 (16:45 +0100)
commit9c5903cf52d151087fc41f04ca0bc1fa8d992f3d
treeafa77655b8bb0aeda93dfe59ec3115b2bc5c09ba
parentfa50702465889718a599136e2b4c1e465ea5a7cc
drm/armada: fix missing overlay wake-up

Nothing was waking up the overlay plane wait queue, so we were fully
reliant on the HZ/25 wait timing out to make progress.  Fix the lack
of wake-up.

We were also mis-handling the wait_event_timeout() return value - this
returns an unsigned integer of the remaining time, or zero on timeout
and the condition evaluated false.  Checking this for less than zero
is not sane.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/gpu/drm/armada/armada_overlay.c