mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
i2c-fixes for v7.2-rc1
- i801: fix error path in smbus transfer - mpc: fix timeout calculation -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQScDfrjQa34uOld1VLaeAVmJtMtbgUCaj9vnAAKCRDaeAVmJtMt bq7xAQC61/OYC2g4MO1j5t9k3neRaI6LOWEzvs9j0lpFSTidBwD+Nmw1VGC4Qs8B 2CmWHWtkbLKYpBtHIBB+2JkilMTZZQo= =YcGr -----END PGP SIGNATURE----- Merge tag 'i2c-fixes-7.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/andi.shyti/linux Pull i2c fixes from Andi Shyti: - i801: fix error path in smbus transfer - mpc: fix timeout calculation * tag 'i2c-fixes-7.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/andi.shyti/linux: i2c: i801: fix hardware state machine corruption in error path i2c: mpc: Fix timeout calculations
This commit is contained in:
commit
4bf54e4752
|
|
@ -931,13 +931,13 @@ static s32 i801_access(struct i2c_adapter *adap, u16 addr,
|
|||
*/
|
||||
if (hwpec)
|
||||
iowrite8(ioread8(SMBAUXCTL(priv)) & ~SMBAUXCTL_CRC, SMBAUXCTL(priv));
|
||||
out:
|
||||
/*
|
||||
* Unlock the SMBus device for use by BIOS/ACPI,
|
||||
* and clear status flags if not done already.
|
||||
*/
|
||||
iowrite8(SMBHSTSTS_INUSE_STS | STATUS_FLAGS, SMBHSTSTS(priv));
|
||||
|
||||
out:
|
||||
pm_runtime_put_autosuspend(&priv->pci_dev->dev);
|
||||
mutex_unlock(&priv->acpi_lock);
|
||||
return ret;
|
||||
|
|
|
|||
|
|
@ -844,7 +844,7 @@ static int fsl_i2c_probe(struct platform_device *op)
|
|||
"fsl,timeout", &mpc_ops.timeout);
|
||||
|
||||
if (!result) {
|
||||
mpc_ops.timeout *= HZ / 1000000;
|
||||
mpc_ops.timeout = mpc_ops.timeout * HZ / 1000000;
|
||||
if (mpc_ops.timeout < 5)
|
||||
mpc_ops.timeout = 5;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user