freebsd-dev/sys/dev/ichiic
Allan Jude 37ef8d4cd6 ig4(4): Increase timeout to about 1 second
Per the i2c spec, a slave device can stretch SCL idefinitely, so 25ms is
a bit arbitrary in general. smbus does specify an optional timeout
recovery mechanism to be done at about 25~35ms, but the IPMI SSIF spec
says that BMCs don't have any obligation to implement that.
The BMC on Altra seems to mostly respond within 25ms, but occasionally
will stretch SCL for ~300 msec.

Also, the count_us mechanism seems to actually timeout around 25%
earlier than it would claim (timeout really happening around 19ms
instead of 25ms).

Sponsored by:	Ampere Computing LLC
Submitted by:	Klara Inc.
Reviewed by:	manu, imp
Differential Revision:	https://reviews.freebsd.org/D28747
2021-02-18 15:47:17 +00:00
..
ig4_acpi.c ig4iic_acpi_probe: remove set but unused variable 2020-04-30 15:45:01 +00:00
ig4_iic.c ig4(4): Increase timeout to about 1 second 2021-02-18 15:47:17 +00:00
ig4_pci.c ig4(4): Add PCI IDs for Intel Tiger Lake 2020-12-05 10:57:15 +00:00
ig4_reg.h [ig4] Add support for CannonLake controllers 2019-11-03 21:16:06 +00:00
ig4_var.h ig4(4): Add PCI IDs for Intel Tiger Lake 2020-12-05 10:57:15 +00:00