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

Skip to content
Commit db11ea21 authored by Qiang Huang's avatar Qiang Huang Committed by Gerrit - the friendly Code Review server
Browse files

power: smb1360: Add multiple usages for the wakeup source



Previously, a single wakeup source is used across the driver for
multiple clients. If two or more clients held the wakeup source
and one client want to relax, it will be relaxed unintentionally
for other clients.

Manage the wakeup source status by using a global bitmap variable.
Each bit maps to one client, each client calling will update the
bitmap variable, and the wakeup source can only be relaxed if
all of the client has relaxed it intentionally.

CRs-Fixed: 846212
Change-Id: I8f93f19a8c639c8cde0b8798cc68e148d56b045e
Signed-off-by: default avatarQiang Huang <qianghuang@codeaurora.org>
parent 02f23e54
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment