power: supply: bq24190_charger: Call set_mode_host() on pm_resume()
authorLiam Breck <liam@networkimprov.net>
Wed, 18 Jan 2017 17:26:49 +0000 (09:26 -0800)
committerSasha Levin <alexander.levin@verizon.com>
Tue, 13 Jun 2017 13:29:19 +0000 (09:29 -0400)
commitf3b0fe6bfcbf9f36e7156984ad5ae6b34102c0e6
tree3aaa9ab3d37be5e502f21b4e9fa14ff0f57da480
parent0ba15a289c6753640d4c4b264c8a4de5c4a8b54e
power: supply: bq24190_charger: Call set_mode_host() on pm_resume()

[ Upstream commit e05ad7e0741ce0505e1df157c62b22b95172bb97 ]

pm_resume() does a register_reset() which clears charger host mode.

Fix by calling set_mode_host() after the reset.

Fixes: d7bf353fd0aa3 ("bq24190_charger: Add support for TI BQ24190 Battery Charger")
Signed-off-by: Liam Breck <kernel@networkimprov.net>
Acked-by: Mark Greer <mgreer@animalcreek.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
drivers/power/bq24190_charger.c