Commit e566658f authored by Tomi Valkeinen's avatar Tomi Valkeinen

OMAPDSS: fix paddr check for TILER addresses

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: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
Reported-by: default avatarsrinivas pulukuru <srinivas.pulukuru@ti.com>
parent 7b205455
...@@ -2441,7 +2441,7 @@ static int dispc_ovl_setup_common(enum omap_plane plane, ...@@ -2441,7 +2441,7 @@ static int dispc_ovl_setup_common(enum omap_plane plane,
unsigned long pclk = dispc_plane_pclk_rate(plane); unsigned long pclk = dispc_plane_pclk_rate(plane);
unsigned long lclk = dispc_plane_lclk_rate(plane); unsigned long lclk = dispc_plane_lclk_rate(plane);
if (paddr == 0) if (paddr == 0 && rotation_type != OMAP_DSS_ROT_TILER)
return -EINVAL; return -EINVAL;
out_width = out_width == 0 ? width : out_width; out_width = out_width == 0 ? width : out_width;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment