Commit a32442d4f8b712b701ea577c841d6a0a7c5993c1

Authored by Tomi Valkeinen
1 parent 30ea9c5218

OMAPDSS: SDI: fix output port_num

After the commit ef691ff48bc8 (OMAPDSS: DT: Get source endpoint by
matching reg-id) we look for the SDI output using the port number.
However, the SDI driver doesn't set the port number, which causes the
SDI display to not initialize.

Fix this by setting the SDI port number to 1. We use a hardcoded value,
as SDI was used only on OMAP3 and it's always port number 1 there.

Reported-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Reported-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

drivers/video/fbdev/omap2/dss/sdi.c
... ... @@ -342,6 +342,8 @@
342 342 out->output_type = OMAP_DISPLAY_TYPE_SDI;
343 343 out->name = "sdi.0";
344 344 out->dispc_channel = OMAP_DSS_CHANNEL_LCD;
  345 + /* We have SDI only on OMAP3, where it's on port 1 */
  346 + out->port_num = 1;
345 347 out->ops.sdi = &sdi_ops;
346 348 out->owner = THIS_MODULE;
347 349