From: Jani Nikula Date: Fri, 12 Apr 2013 12:18:37 +0000 (+0300) Subject: drm/i915: protect backlight registers and data with a spinlock X-Git-Tag: v3.11-rc1~65^2~131^2~111 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ba2d18520ce380cf572e9902d9b3b91ece6c2c0;p=pandora-kernel.git drm/i915: protect backlight registers and data with a spinlock Backlight data and registers are fiddled through LVDS/eDP modeset enable/disable hooks, backlight sysfs files, asle interrupts, and register save/restore. Protect the backlight related registers and driver private fields using a spinlock. The locking in register save/restore covers a little more than is strictly necessary, including non-modeset case, for simplicity. v2: Cover register access, save/restore, i915_read_blc_pwm_ctl() and code paths leading there. Signed-off-by: Jani Nikula Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed