git: kernel - Fix ig4 operation for certain machines

Matthew Dillon dillon at
Mon Mar 21 11:35:57 PDT 2016

commit 2010e26953b9dc96ac7986666ce25b0fbe38f1ca
Author: Matthew Dillon <dillon at>
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
    * 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(-)

DragonFly BSD source repository

More information about the Commits mailing list