]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: designware: platdrv: Set class based on DMI
authorRicardo Ribalda <ribalda@kernel.org>
Thu, 2 Jul 2020 10:33:21 +0000 (12:33 +0200)
committerWolfram Sang <wsa@kernel.org>
Sat, 4 Jul 2020 06:17:53 +0000 (08:17 +0200)
commit1c0dcf3d755be31c26b0d00cae1e207b8bbf75f5
treec6d5703418b45d139443e164151ce76c6abfbfc1
parent57bda4a0476ed3d1e4df28c3a6d63797cefcc97f
i2c: designware: platdrv: Set class based on DMI

Current AMD's zen-based APUs use this core for some of its i2c-buses.

With this patch we re-enable autodetection of hwmon-alike devices, so
lm-sensors will be able to work automatically.

It does not affect the boot-time of embedded devices, as the class is
set based on the DMI information.

DMI is probed only on Qtechnology QT5222 Industrial Camera Platform.

DocLink: https://qtec.com/camera-technology-camera-platforms/
Fixes: 9cf3415a0015 ("i2c: designware: reverts "i2c: designware: Add support for AMD I2C controller"")
Signed-off-by: Ricardo Ribalda <ribalda@kernel.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-designware-platdrv.c