alistair23-linux/drivers/gpu/drm/shmobile
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: Kconfig: Let all DRM_GEM_CMA_HELPER related macros depend on HAVE_DMA_ATTRS 2015-02-03 11:12:37 +10:00
Makefile drm: Renesas SH Mobile DRM driver 2012-09-18 12:28:22 +02:00
shmob_drm_backlight.c drm/shmob: Update copyright notice 2014-09-15 11:34:07 +03:00
shmob_drm_backlight.h drm/shmob: Update copyright notice 2014-09-15 11:34:07 +03:00
shmob_drm_crtc.c drm: Do not set connector->encoder in drivers 2016-01-13 13:30:53 +01:00
shmob_drm_crtc.h drm/shmob: Update copyright notice 2014-09-15 11:34:07 +03:00
shmob_drm_drv.c drm: Stop using drm_vblank_count() as the hw frame counter 2015-10-07 16:13:52 +02:00
shmob_drm_drv.h drm/shmob: Update copyright notice 2014-09-15 11:34:07 +03:00
shmob_drm_kms.c drm: Pass the user drm_mode_fb_cmd2 as const to .fb_create() 2015-11-24 11:47:38 +01:00
shmob_drm_kms.h drm/shmob: Update copyright notice 2014-09-15 11:34:07 +03:00
shmob_drm_plane.c drm/shmob: Update copyright notice 2014-09-15 11:34:07 +03:00
shmob_drm_plane.h drm/shmob: Update copyright notice 2014-09-15 11:34:07 +03:00
shmob_drm_regs.h drm/shmob: Update copyright notice 2014-09-15 11:34:07 +03:00