From: Yufeng Shen Date: Mon, 13 Feb 2012 22:36:54 +0000 (-0500) Subject: drm/i915: Fix race condition in accessing GMBUS X-Git-Tag: v3.4-rc1~143^2~85^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a8ed1f5143b3df312e436ab15290e4a7ca6a559;p=pandora-kernel.git 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 [danvet: Shortened the gmbus_mutex comment a bit and add the patch revision comment to the commit message.] Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed