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

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

Merge "power: smb5: Avoid potential votable deadlock issue"

parents 3b970f34 ee5b9024
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1971,7 +1971,7 @@ int smblib_get_prop_batt_status(struct smb_charger *chg,
	 * If charge termination WA is active and has suspended charging, then
	 * continue reporting charging status as FULL.
	 */
	if (is_client_vote_enabled(chg->usb_icl_votable,
	if (is_client_vote_enabled_locked(chg->usb_icl_votable,
						CHG_TERMINATION_VOTER)) {
		val->intval = POWER_SUPPLY_STATUS_FULL;
		return 0;
@@ -3112,7 +3112,7 @@ int smblib_get_prop_usb_online(struct smb_charger *chg,
		return rc;
	}

	if (is_client_vote_enabled(chg->usb_icl_votable,
	if (is_client_vote_enabled_locked(chg->usb_icl_votable,
					CHG_TERMINATION_VOTER)) {
		rc = smblib_get_prop_usb_present(chg, val);
		return rc;