]> git.baikalelectronics.ru Git - kernel.git/commit
drm/fb-helper: Don't clobber the display palette when fbdev isn't bound
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 27 May 2013 17:19:56 +0000 (20:19 +0300)
committerDave Airlie <airlied@gmail.com>
Mon, 17 Jun 2013 09:42:46 +0000 (19:42 +1000)
commitdc2e7028aab17652582a82f7e60e28eb936433d2
tree6d905c86cd00fa40c391e213ffbb1c7d5bf003c1
parent57afeaeea565cfe9adffd3bfddaf9e7e5d71a060
drm/fb-helper: Don't clobber the display palette when fbdev isn't bound

Perform the drm_fb_helper_is_bound() check to avoid clobbering the
display palette of some other KMS client.

While at it, fix up the locking by grabbing all modeset locks for the
duration of the fb_setcmap operation.

v2: Make a note of the locking changes in the commit message

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@gmail.com>
drivers/gpu/drm/drm_fb_helper.c