p938x_charger: Wait for LDO to report charging

There are too many cases of a wireless charger showing as
charging when it is not.  Only show when LDO is turned on
even if it sacrifices some detection speed.

Change-Id: I9bd1cb03428f4be4fcd2847b50fd7f0e9122154e
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1488807
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
Ryan Lattrel 2020-01-27 11:25:45 -06:00
commit 0145dd0928

View file

@ -344,7 +344,7 @@ static inline int p938x_is_chip_on(struct p938x_charger *chip)
static inline int p938x_is_tx_connected(struct p938x_charger *chip)
{
return (p938x_is_chip_on(chip) && (chip->stat & ST_VRECT_ON));
return (p938x_is_chip_on(chip) && (chip->stat & ST_VOUT_ON));
}
static inline int p938x_is_ldo_on(struct p938x_charger *chip)