]> git.karo-electronics.de Git - linux-beck.git/commit
drm: fix plane rotation when restoring fbdev configuration
authorThomas Wood <thomas.wood@intel.com>
Wed, 20 Aug 2014 13:45:00 +0000 (14:45 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 20 Aug 2014 15:19:27 +0000 (17:19 +0200)
commit3a5f87c286515c54ff5c52c3e64d0c522b7570c0
treeea53c5a3dccac1e556bc008270b85230fe07b064
parentfd639ac6dcbcbae4f2131bf1390a032df659ffb7
drm: fix plane rotation when restoring fbdev configuration

Make sure plane rotation is reset correctly when restoring the fbdev
configuration by using drm_mode_plane_set_obj_prop which calls the
driver's set_property callback.

The rotation reset feature was introduced in commit 9783de2 (drm:
Resetting rotation property) and the callback issue was originally
addressed in a previous version of the patch, but the fix was not
present in the final version.

v2: Fix documentation warning
    Add some more details to the commit message (Daniel Vetter)

Testcase: igt/kms_rotation_crc
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82236
Cc: Sonika Jindal <sonika.jindal@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Dave Airlie <airlied@gmail.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_crtc.c
drivers/gpu/drm/drm_fb_helper.c
include/drm/drm_crtc.h