git: ig4 - Only enable interrupts when we want them. Otherwise keep mask at 0.

Imre Vadasz ivadasz at crater.dragonflybsd.org
Sat Aug 18 11:29:46 PDT 2018


commit d7c855546f690f05cd952ead7f4f09313a428240
Author: Imre Vadász <imre at vdsz.com>
Date:   Sat Aug 18 12:58:40 2018 +0200

    ig4 - Only enable interrupts when we want them. Otherwise keep mask at 0.
    
    * This avoids possible interrupt storms, depending on the state of the I2C
      controller before the driver attached.
    
    * During attaching this clears the interrupt mask.

Summary of changes:
 sys/bus/smbus/ichiic/ig4_iic.c | 28 ++++++++++++++++++++++------
 sys/bus/smbus/ichiic/ig4_var.h |  1 +
 2 files changed, 23 insertions(+), 6 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d7c855546f690f05cd952ead7f4f09313a428240


-- 
DragonFly BSD source repository


More information about the Commits mailing list