]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: intel_cht_int33fe: Work around BIOS bug on some devices
authorHans de Goede <hdegoede@redhat.com>
Sat, 2 Sep 2017 16:20:40 +0000 (18:20 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 20 Sep 2017 13:09:36 +0000 (16:09 +0300)
commit19b84fcc54ec5723a937428d11bd7022abe9e513
treefc739b25e6dc852b90e5e98547f35539e1d11acb
parent6cb16e9cae722d9fad9632e7e48255d8e0a41ad3
platform/x86: intel_cht_int33fe: Work around BIOS bug on some devices

At least one BIOS enumerates the max17047 both through the INT33FE ACPI
device (it is right there in the resources table) as well as through a
separate MAX17047 device.

This commit checks for the max17047 already being enumerated through
a separate MAX17047 ACPI device and if so it uses the i2c-client
instantiated for this and attaches the device-props for the max17047 to
that i2c-client.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/intel_cht_int33fe.c