OMAP: DSS2: DSI: use BTA to end the frame transfer
authorTomi Valkeinen <tomi.valkeinen@nokia.com>
Wed, 9 Jun 2010 12:31:01 +0000 (15:31 +0300)
committerTomi Valkeinen <tomi.valkeinen@nokia.com>
Thu, 5 Aug 2010 13:52:02 +0000 (16:52 +0300)
commitab83b14c829e35436b423947bb5b151133314346
tree8e56254ceaaf33c2fe4651e4d744a4a1d0070693
parent9ecd96842bc6312fdb2f84b6379a6f92686e2fd0
OMAP: DSS2: DSI: use BTA to end the frame transfer

Previously a work was started on FRAMEDONE interrupt, and this work
either sent a BTA synchronously or looped until TE_SIZE was zero, to
wait for the end of the transfer.

This patch changes a BTA to be sent asynchronously from FRAMEDONE
interrupt, and when a BTA interrupt is received, the transfer is
finished. This way we do the whole process asynchronously, and also
inside interrupt context.

This will give us much better latency to handle the end of the frame
than with the previous work based solution.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
drivers/video/omap2/dss/dispc.c
drivers/video/omap2/dss/dsi.c