drm/i915: Protect force_bit with gmbus_mutex
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 7 Mar 2016 15:56:58 +0000 (17:56 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 12 Apr 2016 10:20:58 +0000 (13:20 +0300)
commitade754ec1143caeada0bae01e4c3ea3188497bfd
tree7ae062c9048f7b3aece05a70993801104ec96ad5
parentf470b19095c2cdf11710fde16c1ba7fc01b3c753
drm/i915: Protect force_bit with gmbus_mutex

Extend the protection of gmbus_mutex around the force_bit
RMW in intel_gmbus_force_bit(), in case someone gets the
idea of calling it from a separate thread while there's
other stuff happening on the same bus.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1457366220-29409-3-git-send-email-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_i2c.c