2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-04 03:33:58 +08:00
linux-next/drivers/video/omap2/dss
Tomi Valkeinen 7a53df2c08 OMAPDSS: apply fixes
When omapfb does ovl->get_overlay_info, ovl->set_overlay_info, the set
function may fail even if the info has not been changed. This is because
omapdss doesn't initialize the info, but expect the caller to set valid
values.

Normally that is the case, but there is at least one corner case: if
omapfb has not allocated memory for the overlay yet, and the user uses
ioctl to disable the overlay to make sure it's disabled. In this case
get_overlay_info returns invalid data, but the user is only interested
in setting the overlay to disabled, not configuring it, and
set_overlay_info fails.

The issue is made possible by the omapfb's setup_plane ioctl, which
groups overlay configuration and overlay enable/disable bit into the
same struct. Thus, when you are disabling an overlay, you are also
configuring it.

This is a bit counter intuitive, so I think it's better to initialize
the info to some valid values.

The fields requiring initialization are color_mode and rotation_type,
and also we need to remove the check for (paddr == 0), as paddr is 0 for
unallocated overlay (but it's still fine to disable the overlay).

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2013-12-30 16:14:15 +02:00
..
apply.c OMAPDSS: apply fixes 2013-12-30 16:14:15 +02:00
core.c omapdss: HDMI: Rename hdmi driver files to nicer names 2013-10-09 12:42:30 +03:00
dispc_coefs.c OMAPDSS: DISPC: Fix FIR coefficients 2012-03-06 14:08:23 +02:00
dispc-compat.c OMAPDSS: gracefully disable overlay at error 2013-06-17 14:00:56 +03:00
dispc-compat.h OMAPDSS: move irq handling to dispc-compat 2012-12-07 17:05:57 +02:00
dispc.c OMAPDSS: fix missing EXPORT_SYMBOL()s 2013-12-30 16:14:15 +02:00
dispc.h OMAPDSS: DISPC: Revert to older DISPC Smart Standby mechanism for OMAP5 2013-04-10 15:02:53 +03:00
display-sysfs.c OMAPDSS: Add panel dev pointer to dssdev 2013-06-17 14:00:50 +03:00
display.c OMAPDSS: Fix de_level in videomode_to_omap_video_timings() 2013-10-18 10:57:43 +03:00
dpi.c OMAPDSS: rename omap_dss_device's 'device' field to 'dst' 2013-08-30 08:51:11 +03:00
dsi.c video: Remove unnecessary semicolons 2013-10-30 13:34:52 +02:00
dss_features.c omapdss: HDMI: Use OMAP4 HDMI core functions directly and remove hdmi_ip_ops 2013-10-09 12:42:15 +03:00
dss_features.h omapdss: HDMI: Use OMAP4 HDMI core functions directly and remove hdmi_ip_ops 2013-10-09 12:42:15 +03:00
dss.c OMAPDSS: fix dss_get_ctx_loss_count for DT 2013-06-17 14:00:41 +03:00
dss.h omapdss: HDMI: Rename hdmi driver files to nicer names 2013-10-09 12:42:30 +03:00
hdmi4_core.c OMAPDSS: fix debug prints 2013-12-30 16:14:15 +02:00
hdmi4_core.h omapdss: HDMI: move common functions to a separate file 2013-10-09 12:42:37 +03:00
hdmi4.c omapdss: HDMI: move common functions to a separate file 2013-10-09 12:42:37 +03:00
hdmi_common.c OMAPDSS: fix debug prints 2013-12-30 16:14:15 +02:00
hdmi_phy.c omapdss: HDMI: Rename hdmi driver files to nicer names 2013-10-09 12:42:30 +03:00
hdmi_pll.c OMAPDSS: fix debug prints 2013-12-30 16:14:15 +02:00
hdmi_wp.c OMAPDSS: fix debug prints 2013-12-30 16:14:15 +02:00
hdmi.h omapdss: HDMI: move common functions to a separate file 2013-10-09 12:42:37 +03:00
Kconfig OMAPDSS: RFBI: Mark RFBI as broken 2013-08-29 16:21:51 +03:00
Makefile omapdss: HDMI: move common functions to a separate file 2013-10-09 12:42:37 +03:00
manager-sysfs.c OMAPDSS: fix WARN_ON in 'alpha_blending_enabled' sysfs file 2013-08-29 16:43:47 +03:00
manager.c OMAPDSS: split overlay manager creation 2013-06-17 14:00:42 +03:00
output.c OMAPDSS: rename omap_dss_device's 'device' field to 'dst' 2013-08-30 08:51:11 +03:00
overlay-sysfs.c OMAPDSS: split overlay sysfs code 2012-09-07 20:02:10 +03:00
overlay.c OMAPDSS: apply fixes 2013-12-30 16:14:15 +02:00
rfbi.c OMAPDSS: RFBI: remove code related to old panel model 2013-08-29 16:21:53 +03:00
sdi.c OMAPDSS: rename omap_dss_device's 'device' field to 'dst' 2013-08-30 08:51:11 +03:00
venc_panel.c OMAPDSS: Add panel dev pointer to dssdev 2013-06-17 14:00:50 +03:00
venc.c OMAPDSS: rename omap_dss_device's 'device' field to 'dst' 2013-08-30 08:51:11 +03:00