OSDN Git Service

OMAPDSS: fix paddr check for TILER addresses
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 28 Nov 2014 12:34:15 +0000 (14:34 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 26 Feb 2015 10:15:11 +0000 (12:15 +0200)
The DISPC driver checks that the buffer address is not 0. However, when
using TILER, the address space is TILER specific and 0 is a valid
address.

Fix the check to allow address of 0 for TILER.

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

index 31b743c..a19a1d4 100644 (file)
@@ -2441,7 +2441,7 @@ static int dispc_ovl_setup_common(enum omap_plane plane,
        unsigned long pclk = dispc_plane_pclk_rate(plane);
        unsigned long lclk = dispc_plane_lclk_rate(plane);
 
-       if (paddr == 0)
+       if (paddr == 0 && rotation_type != OMAP_DSS_ROT_TILER)
                return -EINVAL;
 
        out_width = out_width == 0 ? width : out_width;