]> git.baikalelectronics.ru Git - kernel.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)
commita6ccd9f0382fb062331499471c249734d06870b7
tree2435be9b1499010f6d4542a8a214eb7ba125ed39
parent95bfd384d61127837103cbe90c4a56fdf430ba2d
drm/omap: dsi: Hack-fix DSI bus flags

Since commit f1bc30a79c1b ("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: f1bc30a79c1b ("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