]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
power: supply: axp288_charger: Only wait for INT3496 device if present
authorHans de Goede <hdegoede@redhat.com>
Wed, 19 Apr 2017 12:02:12 +0000 (14:02 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 19 Apr 2017 20:53:35 +0000 (22:53 +0200)
commit6c4c9a9a4a294a2e85784d0eaf6a4f833ee99752
tree614be33bd04bc1b457a7e9e898a090f6f5010990
parentaf3ec837b84befedde35a2239f873f6cd7c09e68
power: supply: axp288_charger: Only wait for INT3496 device if present

On some devices with an axp288 pmic setting vbus path based on the
id-pin is handled by an ACPI _AIE interrupt on the gpio and the
INT3496 device is disabled.

Instead of returning -EPROBE_DEFER on these devices waiting for the
never to show up INT3496 device, check for its presence and only
request and monitor the matching extcon if the device is there,
otherwise let the firmware handle the vbus path control.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/power/supply/axp288_charger.c