• Yufeng Shen's avatar
    drm/i915: Fix race condition in accessing GMBUS · 8a8ed1f5
    Yufeng Shen authored
    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: default avatarYufeng 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: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    8a8ed1f5
i915_drv.h 43.9 KB