]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/omap: dsi: Hack-fix DSI bus flags
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 11 Jan 2019 03:50:35 +0000 (05:50 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 6 Feb 2019 11:39:03 +0000 (13:39 +0200)
commit6297388e1eddd2f1345cea5892156223995bcf2d
tree2435be9b1499010f6d4542a8a214eb7ba125ed39
parent0940c52742de0d2f70ba687bfd5fe8aa38c5f27d
drm/omap: dsi: Hack-fix DSI bus flags

Since commit b4935e3a3cfa ("drm/omap: Store bus flags in the
omap_dss_device structure") video mode flags are managed by the omapdss
(and later omapdrm) core based on bus flags stored in omap_dss_device.
This works fine for all devices whose video modes are set by the omapdss
and omapdrm core, but breaks DSI operation as the DSI still uses legacy
code paths and sets the DISPC timings manually.

To fix the problem properly we should move the DSI encoder to the new
encoder model. This will however require a considerable amount of work.
Restore DSI operation by adding back video mode flags handling in the
DSI encoder driver as a hack in the meantime.

Fixes: b4935e3a3cfa ("drm/omap: Store bus flags in the omap_dss_device structure")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190111035120.20668-5-laurent.pinchart@ideasonboard.com
drivers/gpu/drm/omapdrm/dss/dsi.c