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 <email@example.com>
Cc: Carlo Caione <firstname.lastname@example.org>
Reported-by: Johannes Stezenbach <email@example.com>
Reviewed-by: Andy Shevchenko <firstname.lastname@example.org>
Acked-by: Stephen Boyd <email@example.com>
Signed-off-by: Hans de Goede <firstname.lastname@example.org>
Signed-off-by: David S. Miller <email@example.com>