]> git.baikalelectronics.ru Git - kernel.git/commit
OMAPDSS: DISPC: fix div by zero issue in overlay scaling
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 3 Oct 2014 15:14:09 +0000 (15:14 +0000)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 26 Feb 2015 10:15:13 +0000 (12:15 +0200)
commitc1dd487c2fdef33756bf51e171cd48980adbb316
treea71c7575f7227d9c9cf01db2cd3f3e54f3fa032b
parentd91b3f92e6cc640cd469b906544edb11d828732d
OMAPDSS: DISPC: fix div by zero issue in overlay scaling

omapdrm doesn't always configure the overlays correctly, causing the
overlay setup functions to be called with zero timings. This leads to
division by zero error.

This happens, for example, when a HDMI cable is not connected, but a
user tries to setup a plane with scaling.

Fixing omapdrm is a big job, so for now let's check for the bad timings
in DISPC and return an error.

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