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

Commit c259292e 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 353ad4ca c7a78775
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1963,7 +1963,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;
@@ -3075,7 +3075,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;