• Jean Delvare's avatar
    i2c: i801: Restore INTREN on unload · 9b5bf587
    Jean Delvare authored
    If driver interrupts are enabled, SMBHSTCNT_INTREN will be 1 after
    the first transaction, and will stay to that value forever. This
    means that interrupts will be generated for both host-initiated
    transactions and also SMBus Alert events even after the driver is
    unloaded. To be on the safe side, we should restore the initial state
    of this bit at suspend and reboot time, as we do for several other
    configuration bits already and for the same reason: the BIOS should
    be handed the device in the same configuration state in which we
    received it. Otherwise interrupts may be generated which nobody
    will process.
    Signed-off-by: default avatarJean Delvare <jdelvare@suse.de>
    Tested-by: default avatarJarkko Nikula <jarkko.nikula@linux.intel.com>
    Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
    9b5bf587
i2c-i801.c 58.1 KB