OSDN Git Service

power: supply: axp288_charger: Get and process initial hardware-state
authorHans de Goede <hdegoede@redhat.com>
Wed, 21 Dec 2016 14:36:54 +0000 (15:36 +0100)
committerSebastian Reichel <sre@kernel.org>
Wed, 4 Jan 2017 21:03:04 +0000 (22:03 +0100)
commit5c5bcb8c576c5ce85f19cc71a7c936ade5210f88
tree2bf7d0c101d0c52d68c8b9d13262aead548d1fe3
parentbcd39ba7327e806190761aeefa953099e68ebe24
power: supply: axp288_charger: Get and process initial hardware-state

Do not wait for an extcon notification before processing the cable
states, instead queue the otg / cable work on probe to make sure we
immediately process the initial hardware state.

Note this also requiree moving the getting of the USB_HOST cable state
from the extcon notifier to the workqueue function.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/supply/axp288_charger.c