Commit d31fd43c ("clk: x86: Do not gate clocks enabled by the
firmware"), which added the code to mark clocks as CLK_IS_CRITICAL, causes
all unclaimed PMC clocks on Cherry Trail devices to be on all the time,
resulting on the device not being able to reach S0i3 when suspended.
The reason for this commit is that on some Bay Trail / Cherry Trail devices
the r8169 ethernet controller uses pmc_plt_clk_4. Now that the clk-pmc-atom
driver exports an "ether_clk" alias for pmc_plt_clk_4 and the r8169 driver
has been modified to get and enable this clock (if present) the marking of
the clocks as CLK_IS_CRITICAL is no longer necessary.
This commit removes the CLK_IS_CRITICAL marking, fixing Cherry Trail
devices not being able to reach S0i3 greatly decreasing their battery
drain when suspended.
Cc: Johannes Stezenbach <firstname.lastname@example.org>
Cc: Carlo Caione <email@example.com>
Reported-by: Johannes Stezenbach <firstname.lastname@example.org>
Reviewed-by: Andy Shevchenko <email@example.com>
Acked-by: Stephen Boyd <firstname.lastname@example.org>
Signed-off-by: Hans de Goede <email@example.com>
Signed-off-by: David S. Miller <firstname.lastname@example.org>