Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 927e650c authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "power: smb1390-psy: Add logs to expose charge pump(s) status"

parents 06bd153e a112dfea
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -865,6 +865,9 @@ static int smb1390_disable_vote_cb(struct votable *votable, void *data,
		return rc;
	}

	smb1390_dbg(chip, PR_INFO, "client: %s, master: %s\n",
			client, (disable ? "disabled" : "enabled"));

	/* charging may have been disabled by ILIM; send uevent */
	if (chip->cp_master_psy && (disable != chip->disabled))
		power_supply_changed(chip->cp_master_psy);
@@ -887,6 +890,9 @@ static int smb1390_slave_disable_vote_cb(struct votable *votable, void *data,
		return rc;
	}

	smb1390_dbg(chip, PR_INFO, "client: %s, slave: %s\n",
			client, (disable ? "disabled" : "enabled"));

	/* Re-distribute ILIM to Master CP when Slave is disabled */
	if (disable && (chip->ilim_votable)) {
		ilim_ua = get_effective_result_locked(chip->ilim_votable);
@@ -967,7 +973,7 @@ static int smb1390_ilim_vote_cb(struct votable *votable, void *data,
			return rc;
		}

		smb1390_dbg(chip, PR_INFO, "ILIM set to %duA slave_enabled%d\n",
		smb1390_dbg(chip, PR_INFO, "ILIM set to %duA slave_enabled = %d\n",
						ilim_uA, slave_enabled);
		vote(chip->disable_votable, ILIM_VOTER, false, 0);
	}