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

Skip to content
Commit 03f44abf authored by Matt Wagantall's avatar Matt Wagantall Committed by Stephen Boyd
Browse files

msm: footswitch-pcom: Set rail modes only for probed footswitches



Currently, all footswitches supported by footswitch-pcom are enabled
and set to "manual" mode during a subsys_initcall, regardless of
whether or not the footswitch's device will ever probe or even exist
in hardware.

Because calls to enable footswitches also implicitly enable clocks (on
the modem side), this behaviour results in clocks being turned on
unnecessarily. The clock driver's "auto-off" feature later disables
them, but it's best not to rely on that happening (especially since
auto-off may soon be removed).

Change-Id: Ie3f59ddcba44a126cf74dd64e5e50848ca61e364
Signed-off-by: default avatarMatt Wagantall <mattw@codeaurora.org>
parent a041748a
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