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

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

Merge "power: smb5-lib: Fix wake lock acquisition"

parents 7d7a45b1 74fcf976
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -5795,6 +5795,12 @@ static void smblib_moisture_protection_work(struct work_struct *work)
	bool usb_plugged_in;
	u8 stat;

	/*
	 * Hold awake votable to prevent pm_relax being called prior to
	 * completion of this work.
	 */
	vote(chg->awake_votable, MOISTURE_VOTER, true, 0);

	/*
	 * Disable 1% duty cycle on CC_ID pin and enable uUSB factory mode
	 * detection to track any change on RID, as interrupts are disable.
@@ -5859,7 +5865,7 @@ static void smblib_moisture_protection_work(struct work_struct *work)
	}

out:
	pm_relax(chg->dev);
	vote(chg->awake_votable, MOISTURE_VOTER, false, 0);
}

static enum alarmtimer_restart moisture_protection_alarm_cb(struct alarm *alarm,