linux_dsm_epyc7002/drivers/gpu/drm/omapdrm/displays
Laurent Pinchart 31cd7afa30 drm/omap: panels: Don't modify fixed timings
Panels drivers store their timings in a device data structure field that
is initialized at probe time, either from hardcoded values or from
firmware-supplied values. Those timings are then reported through the
.get_timings() operation to construct the panel display mode.

The panel timings are further modified by the .set_timings() operation,
which is called with the timings retrieved by .get_timings(), and
mangled by .check_timings(). The latter potentially adjusts the pixel
clock only.

Conceptually, modifying the panel timings is wrong, as the timings are
an intrinsic property of the panel and should thus be fixed.
Furthermore, modifying them this way at runtime can result in display
modes reported to userspace varying between calls, which is also wrong.

There's no actual need to store the mangled pixel clock value in the
timings. Don't modify the panel timings in the .set_timings() operation,
just forward it to the previous device in the display pipeline.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2018-09-03 16:13:30 +03:00
..
connector-analog-tv.c drm/omap: Remove .get_timings() operation from display connectors 2018-09-03 16:13:30 +03:00
connector-dvi.c drm/omap: Remove .get_timings() operation from display connectors 2018-09-03 16:13:30 +03:00
connector-hdmi.c drm/omap: Remove .get_timings() operation from display connectors 2018-09-03 16:13:30 +03:00
encoder-opa362.c drm/omap: Don't call .check_timings() operation recursively 2018-09-03 16:13:30 +03:00
encoder-tfp410.c drm/omap: Don't call .check_timings() operation recursively 2018-09-03 16:13:30 +03:00
encoder-tpd12s015.c drm/omap: Don't call .check_timings() operation recursively 2018-09-03 16:13:30 +03:00
Kconfig drm/omap: displays: panel-dpi: add backlight dependency 2017-11-30 12:25:37 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
panel-dpi.c drm/omap: panels: Don't modify fixed timings 2018-09-03 16:13:30 +03:00
panel-dsi-cm.c drm/omap: Move most omap_dss_driver operations to omap_dss_device_ops 2018-09-03 16:13:29 +03:00
panel-lgphilips-lb035q02.c drm/omap: panels: Don't modify fixed timings 2018-09-03 16:13:30 +03:00
panel-nec-nl8048hl11.c drm/omap: panels: Don't modify fixed timings 2018-09-03 16:13:30 +03:00
panel-sharp-ls037v7dw01.c drm/omap: panels: Don't modify fixed timings 2018-09-03 16:13:30 +03:00
panel-sony-acx565akm.c drm/omap: panels: Don't modify fixed timings 2018-09-03 16:13:30 +03:00
panel-tpo-td028ttec1.c drm/omap: panels: Don't modify fixed timings 2018-09-03 16:13:30 +03:00
panel-tpo-td043mtea1.c drm/omap: panels: Don't modify fixed timings 2018-09-03 16:13:30 +03:00