OpenCloudOS-Kernel/drivers/gpu/drm/imx
Thierry Reding eb47fe8033 drm: Do not set connector->encoder in drivers
An encoder is associated with a connector by the DRM core as a result of
setting up a configuration. Drivers using the atomic or legacy helpers
should never set up this link, even if it is a static one.

While at it, try to catch this kind of error in the future by adding a
WARN_ON() in drm_mode_connector_attach_encoder(). Note that this doesn't
cover all the cases, since drivers could set this up after attaching.
Drivers that use the atomic helpers will get a warning later on, though,
so hopefully the two combined cover enough to help people avoid this in
the future.

Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Philipp Zabel <p.zabel@pengutronix.de>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Liviu Dudau <Liviu.Dudau@arm.com>
Cc: Mark yao <mark.yao@rock-chips.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1447694393-24700-1-git-send-email-thierry.reding@gmail.com
2016-01-13 13:30:53 +01:00
..
Kconfig drm/imx: Remove local fbdev emulation Kconfig option 2015-11-24 11:41:50 +01:00
Makefile drm: imx: imx-hdmi: move imx-hdmi to bridge/dw_hdmi 2015-01-07 18:31:56 +01:00
dw_hdmi-imx.c drm/imx: Constify function pointer structs 2015-12-15 13:46:26 +01:00
imx-drm-core.c drm/imx: Constify function pointer structs 2015-12-15 13:46:26 +01:00
imx-drm.h drm/imx: Make pipe number unsigned 2015-12-15 13:36:18 +01:00
imx-ldb.c drm/imx: Constify function pointer structs 2015-12-15 13:46:26 +01:00
imx-tve.c drm/imx: Constify function pointer structs 2015-12-15 13:46:26 +01:00
ipuv3-crtc.c drm/imx: Constify function pointer structs 2015-12-15 13:46:26 +01:00
ipuv3-plane.c drm: Pass 'name' to drm_universal_plane_init() 2015-12-11 09:13:10 +01:00
ipuv3-plane.h drm/imx: switch to universal planes 2015-11-19 12:51:38 +01:00
parallel-display.c drm: Do not set connector->encoder in drivers 2016-01-13 13:30:53 +01:00