Re: [PATCH v2] i2c: i801: Ensure that SMBHSTSTS_INUSE_STS is cleared when leaving i801_access
From: Hector Martin <hidden>
Date: 2021-06-07 01:48:02
From: Hector Martin <hidden>
Date: 2021-06-07 01:48:02
On 06/06/2021 22.55, Heiner Kallweit wrote:
As explained in [0] currently we may leave SMBHSTSTS_INUSE_STS set, thus potentially breaking ACPI/BIOS usage of the SMBUS device. Seems patch [0] needs a little bit more of review effort, therefore I'd suggest to apply a part of it as quick win. Just clearing SMBHSTSTS_INUSE_STS when leaving i801_access() should fix the referenced issue and leaves more time for discussing a more sophisticated locking handling.
out: + /* Unlock the SMBus device for use by BIOS/ACPI */ + outb_p(SMBHSTSTS_INUSE_STS, SMBHSTSTS(priv)); + pm_runtime_mark_last_busy(&priv->pci_dev->dev);
Yup, I was thinking of suggesting just this part if the rest of the patch were deemed more controversial. Thanks :) Reviewed-by: Hector Martin <redacted> -- Hector Martin (marcan@marcan.st) Public Key: https://mrcn.st/pub