diff options
author | Yufeng Shen <miletus@chromium.org> | 2012-02-13 17:36:54 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-02-14 10:39:53 +0100 |
commit | 8a8ed1f5143b3df312e436ab15290e4a7ca6a559 (patch) | |
tree | 90067c14702ee364b47c551d1467508329521f28 /drivers/gpu/drm/i915/intel_display.c | |
parent | b1d7e4b41fd0f72ea8149056778db5d737739305 (diff) | |
download | lwn-8a8ed1f5143b3df312e436ab15290e4a7ca6a559.tar.gz lwn-8a8ed1f5143b3df312e436ab15290e4a7ca6a559.zip |
drm/i915: Fix race condition in accessing GMBUS
GMBUS has several ports and each has it's own corresponding
I2C adpater. When multiple I2C adapters call gmbus_xfer() at
the same time there is a race condition in using the underlying
GMBUS controller. Fixing this by adding a mutex lock when calling
gmbus_xfer().
v2: Moved gmbus_mutex below intel_gmbus and added comments.
Rebased to drm-intel-next-queued.
Signed-off-by: Yufeng Shen <miletus@chromium.org>
[danvet: Shortened the gmbus_mutex comment a bit and add the patch
revision comment to the commit message.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_display.c')
0 files changed, 0 insertions, 0 deletions