]> git.baikalelectronics.ru Git - kernel.git/commit
iio: adc: axp288: Override TS pin bias current for some models
authorHans de Goede <hdegoede@redhat.com>
Sun, 15 Sep 2019 18:53:42 +0000 (20:53 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 9 Oct 2019 18:11:27 +0000 (19:11 +0100)
commit8744aa53574c6c31abccb57f256ca3676c587ab2
tree76ae70de7944f1d479d177c9792b6cfc0f4a972f
parentcbacf9f94bd57900b60371d5d579b47f4d05139c
iio: adc: axp288: Override TS pin bias current for some models

Since commit ea73677206b2 ("iio: adc: axp288: Fix TS-pin handling") we
preserve the bias current set by the firmware at boot.  This fixes issues
we were seeing on various models, but it seems our old hardcoded 80ųA bias
current was working around a firmware bug on at least one model laptop.

In order to both have our cake and eat it, this commit adds a dmi based
list of models where we need to override the firmware set bias current and
adds the one model we now know needs this to it: The Lenovo Ideapad 100S
(11 inch version).

Fixes: ea73677206b2 ("iio: adc: axp288: Fix TS-pin handling")
BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=203829
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/axp288_adc.c