OMAP: DSS2: DSI: detect unsupported update requests
authorTomi Valkeinen <tomi.valkeinen@nokia.com>
Tue, 25 May 2010 14:01:28 +0000 (17:01 +0300)
committerTomi Valkeinen <tomi.valkeinen@nokia.com>
Thu, 5 Aug 2010 13:52:06 +0000 (16:52 +0300)
commita602771c43ed7f1a02c7766c94fda74ac5d72a8b
treeaf11ea5c9f7b901453b6924fa7166f4fb4997d4c
parent36194b4792bacf8a02e713536487af60938f06dd
OMAP: DSS2: DSI: detect unsupported update requests

OMAP DSS HW cannot send updates with odd widths. Normally the widths are
made even while preparing the update.

This patch adds a BUG_ON() to check if the update width is even. This is
to detect broken updates cleanly, as otherwise the OMAP DSS HW will just
halt, leading to obscure error situations.

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