freebsd-skq/sys/dev/ichiic
Michael Gmelin 0ba5622d8c 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.

Reported by:	pfg
Reviewed by:	jhb
Approved by:	jhb
Obtained from:	DragonFly BSD
Differential Revision:	https://reviews.freebsd.org/D6586
2016-05-30 09:05:24 +00:00
..
ig4_iic.c Fix ig4 operation for certain machines 2016-05-30 09:05:24 +00:00
ig4_pci.c
ig4_reg.h sys/dev: minor spelling fixes. 2016-05-03 03:41:25 +00:00
ig4_var.h