]> git.baikalelectronics.ru Git - kernel.git/commit
iio: adc: Revert "axp288: Drop bogus AXP288_ADC_TS_PIN_CTRL register modifications"
authorHans de Goede <hdegoede@redhat.com>
Fri, 30 Jun 2017 17:42:54 +0000 (19:42 +0200)
committerJonathan Cameron <jic23@kernel.org>
Tue, 4 Jul 2017 19:31:50 +0000 (20:31 +0100)
commit52a2fa3cf487a0a657a928a6976203e6343b08cf
tree983ad0cca7438be2d469827702c6c65574d154fe
parentcefe3064e33987691bb27e256c68c7f4025a79cb
iio: adc: Revert "axp288: Drop bogus AXP288_ADC_TS_PIN_CTRL register modifications"

Inheriting the ADC BIAS current settings from the BIOS instead of
hardcoding then causes the AXP288 to disable charging (I think it
mis-detects an overheated battery) on at least one model tablet.

So lets go back to hard coding the values, this reverts
commit cb1cf5425692 ("iio: adc: axp288: Drop bogus
AXP288_ADC_TS_PIN_CTRL register modifications"), fixing charging not
working on the model tablet in question.

The exact cause is not fully understood, hence the revert to a known working
state.

Cc: stable@vger.kernel.org
Reported-by: Umberto Ixxo <sfumato1977@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/axp288_adc.c