Commit 3ea084df authored by ChiYuan Huang's avatar ChiYuan Huang Committed by Greg Kroah-Hartman
Browse files

power: supply: rt9471: Use IC status regfield to report real charger status



[ Upstream commit c46a9ee5 ]

Use IC status regfield to rewrite the 'get_staus' function. The original
one cannot cover some special scenario like as charger OTG or JEITA case.

Fixes: 4a1a5f67 ("power: supply: rt9471: Add Richtek RT9471 charger driver")
Reported-by: default avatarLucas Tsai <lucas_tsai@richtek.com>
Signed-off-by: default avatarChiYuan Huang <cy_huang@richtek.com>
Link: https://lore.kernel.org/r/67ba92bb4a9c51d9cafadab30b788a3a2c3048e1.1727252762.git.cy_huang@richtek.com


Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 8637f400
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment