[lkml]   [2012]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 5/9] drm/i915/intel_i2c: add locking around i2c algorithm accesses
    On Wed, Mar 07, 2012 at 07:50:46PM +0800, Daniel Kurtz wrote:
    > The i915 has multiple i2c adapters. However, they all share a single
    > single set of i2c control registers (algorithm). Thus, different threads
    > trying to access different adapters could interfere with each other.
    > Note: different threads trying to access the same channel is already
    > handled in the i2c-core using the i2c adapter lock.
    > This patch adds a mutex to serialize access to the gmbus_xfer routine.
    > Note: the same mutex serializes both bit banged and native xfers.
    > Signed-off-by: Yufeng Shen <>
    > Signed-off-by: Daniel Kurtz <>

    This is already fixed in

    commit 8a8ed1f5143b3df312e436ab15290e4a7ca6a559
    Author: Yufeng Shen <>
    Date: Mon Feb 13 17:36:54 2012 -0500

    drm/i915: Fix race condition in accessing GMBUS

    There are also a few gmbus changes already queued up in my -next tree at

    Please rebase your patch series on top of that (with Chris' suggestion

    Thanks, Daniel
    Daniel Vetter
    Mobile: +41 (0)79 365 57 48

     \ /
      Last update: 2012-03-18 19:21    [W:0.074 / U:0.000 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site