git: kernel - Fix ig4 operation for certain machines

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Mar 21 11:35:57 PDT 2016


commit 2010e26953b9dc96ac7986666ce25b0fbe38f1ca
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Mar 21 11:33:54 2016 -0700

    kernel - Fix ig4 operation for certain machines
    
    * Some machine BIOSes use the I2C bus and leave it in a state that causes
      interrupts to not work properly due to a pending interrupt having been
      latched.
    
    * Refactor the code a bit to clear pending interrupts when I2C is enabled.
      This fixes the primary problem.
    
    * Also fix a possible race condition in the interrupt handler where the
      interrupt was being cleared after reading the status instead of before.

Summary of changes:
 sys/bus/smbus/ichiic/ig4_iic.c | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2010e26953b9dc96ac7986666ce25b0fbe38f1ca


-- 
DragonFly BSD source repository



More information about the Commits mailing list