HomeFreeBSD

iichid(4): disable interrupt on suspend

Description

iichid(4): disable interrupt on suspend

Commit message of the identical change in Linux driver says:
"When an I2C HID device is powered off during system sleep, as a result
of removing its power resources (by the ACPI core) the interrupt line
might go low as well. This results inadvertent interrupts."

This change fixes suspend/resume on Asus S510UQ laptops.

While here add a couple of typo fixes as well as a slight change to the
iichid_attach() code to have the power_on flag set properly.

Submitted by: J.R. Oldroyd <jr_AT_opal_DOT_com>
Reviewed by: wulf

(cherry picked from commit 5236888db77194c194706b122675af7355fe7ceb)

Details

Provenance
fbsd_opal.comAuthored on May 31 2021, 7:33 PM
wulfCommitted on Aug 16 2021, 12:45 AM
Parents
rG181044a10169: nfscl: Set correct lockowner for "oneopenown" mount option
Branches
Unknown
Tags
Unknown