]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: acpi: permit bus speed to be discovered after enumeration
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 24 May 2019 16:26:46 +0000 (18:26 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 30 May 2019 07:35:45 +0000 (15:35 +0800)
commitd311d3a87a455d23afb1796c3cf26b55be564018
tree9ee52abdbc85bdc84f8c140526ae27437af17e1e
parent3193b3f6b13e47f522015b3722187a3bc55858d6
i2c: acpi: permit bus speed to be discovered after enumeration

Currently, the I2C ACPI enumeration code only permits the max bus rate
to be discovered before enumerating the slaves on the bus. In some
cases, drivers for slave devices may require this information, e.g.,
some ATmel crypto drivers need to generate a so-called wake token
of a fixed duration, regardless of the bus rate.

So tweak the code so i2c_acpi_lookup_speed() is able to obtain this
information after enumeration as well.

Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/i2c/i2c-core-acpi.c