linux/drivers/gpu/drm/sti
Maxime Ripard 4314e19ef4 drm/fb_cma_helper: Remove implicit call to disable_unused_functions
The drm_fbdev_cma_init function always calls the
drm_helper_disable_unused_functions. Since it's part of the usual probe
process, all the drivers using that helper will end up having their encoder
and CRTC disable functions called at probe if their device has not been
reported as enabled.

This could be fixed by reading out from the registers the current state of
the device if it is enabled, but even that will not handle the case where
the device is actually disabled.

Moreover, the drivers using the atomic modesetting expect that their enable
and disable callback to be called when the device is already enabled or
disabled (respectively).

We can however fix this issue by moving the call to
drm_helper_disable_unused_functions out of drm_fbdev_cma_init and make the
drivers needing it (all the drivers calling drm_fbdev_cma_init and not
using the atomic modesetting) explicitly call it.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1452785109-6172-14-git-send-email-maxime.ripard@free-electrons.com
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2016-01-15 11:16:15 +01:00
..
Kconfig drm/sti: load HQVDP firmware the first time HQVDP's plane is used 2015-11-03 13:04:56 +01:00
Makefile drm/sti: Build monolithic driver 2015-11-03 13:04:54 +01:00
NOTES
sti_awg_utils.c drm/sti: remove redundant sign extensions 2015-11-03 13:04:55 +01:00
sti_awg_utils.h drm: sti: add DVO output connector 2014-12-30 15:08:16 +01:00
sti_compositor.c drm/sti: Build monolithic driver 2015-11-03 13:04:54 +01:00
sti_compositor.h drm/sti: rename files and functions 2015-08-03 14:25:06 +02:00
sti_crtc.c drm: Pass 'name' to drm_crtc_init_with_planes() 2015-12-11 09:12:44 +01:00
sti_crtc.h drm/irq: Use unsigned int pipe in public API 2015-10-06 12:57:47 +02:00
sti_cursor.c drm: Pass 'name' to drm_universal_plane_init() 2015-12-11 09:13:10 +01:00
sti_cursor.h drm/sti: atomic crtc/plane update 2015-08-03 14:26:05 +02:00
sti_drv.c drm/fb_cma_helper: Remove implicit call to disable_unused_functions 2016-01-15 11:16:15 +01:00
sti_drv.h drm/sti: Build monolithic driver 2015-11-03 13:04:54 +01:00
sti_dvo.c drm/sti: Build monolithic driver 2015-11-03 13:04:54 +01:00
sti_gdp.c drm: Pass 'name' to drm_universal_plane_init() 2015-12-11 09:13:10 +01:00
sti_gdp.h drm/sti: atomic crtc/plane update 2015-08-03 14:26:05 +02:00
sti_hda.c drm/sti: Drop bogus drm_mode_sort() call 2015-12-11 09:33:18 +01:00
sti_hdmi_tx3g0c55phy.c drm: sti: add HDMI driver 2014-07-30 19:24:55 +02:00
sti_hdmi_tx3g0c55phy.h drm: sti: add HDMI driver 2014-07-30 19:24:55 +02:00
sti_hdmi_tx3g4c28phy.c drm: sti: add HDMI driver 2014-07-30 19:24:55 +02:00
sti_hdmi_tx3g4c28phy.h drm: sti: add HDMI driver 2014-07-30 19:24:55 +02:00
sti_hdmi.c drm/sti: hdmi use of_get_i2c_adapter_by_node interface 2015-11-03 13:04:54 +01:00
sti_hdmi.h drm: sti: remove gpio for HDMI hot plug detection 2014-12-11 13:58:12 +01:00
sti_hqvdp_lut.h drm: sti: add HQVDP plane 2014-12-11 14:00:13 +01:00
sti_hqvdp.c drm: Pass 'name' to drm_universal_plane_init() 2015-12-11 09:13:10 +01:00
sti_mixer.c drm/sti: set mixer background color through module param 2015-11-03 13:04:55 +01:00
sti_mixer.h drm/sti: atomic crtc/plane update 2015-08-03 14:26:05 +02:00
sti_plane.c drm/sti: Do not export symbols 2015-11-03 13:04:54 +01:00
sti_plane.h drm/sti: atomic crtc/plane update 2015-08-03 14:26:05 +02:00
sti_tvout.c drm: Pass 'name' to drm_encoder_init() 2015-12-11 09:13:20 +01:00
sti_vid.c drm/sti: atomic crtc/plane update 2015-08-03 14:26:05 +02:00
sti_vid.h drm/sti: atomic crtc/plane update 2015-08-03 14:26:05 +02:00
sti_vtac.c drm/sti: Build monolithic driver 2015-11-03 13:04:54 +01:00
sti_vtg.c drm/sti: Do not export symbols 2015-11-03 13:04:54 +01:00
sti_vtg.h drm/sti: Use drm_crtc_vblank_*() API 2015-11-03 13:04:53 +01:00