]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: designware: Find bus speed from ACPI
authorJarkko Nikula <jarkko.nikula@linux.intel.com>
Fri, 12 Aug 2016 14:02:54 +0000 (17:02 +0300)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 25 Aug 2016 22:42:11 +0000 (00:42 +0200)
commita7426ba7899716d4d24b2e0918aec4dd1723a8d7
tree8248a8506cb6ec56b66b5bb547fdf04487c311de
parentb3501cee6bafe67a6a2bf8e412b30b7e060acf8e
i2c: designware: Find bus speed from ACPI

Fast mode is the default speed of i2c-designware which can be overridden
by platform data or by "clock-frequency" device property. Even though
the ACPI 5.1 can pass device properties via _DSD method, shipping systems
define the connection speed between I2C host and each slave in their
I2cSerialBus resources. Which means speed is not defined per bus but per
slave.

As there is now support in i2c-core to find the bus speed from ACPI use
that to set up the bus speed prior registering the I2C adapter.

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-designware-platdrv.c