clk: x86: Add system specific quirk to mark clocks as critical
authorDavid Müller <dave.mueller@gmx.ch>
Mon, 8 Apr 2019 13:33:54 +0000 (15:33 +0200)
committerStephen Boyd <sboyd@kernel.org>
Wed, 10 Apr 2019 22:54:12 +0000 (15:54 -0700)
commit7c2e07130090ae001a97a6b65597830d6815e93e
tree49390d3305bda6d110ad8a71a871d36bc43192b3
parent9f842abde84d4232d7a1951952dc148bd83f9ada
clk: x86: Add system specific quirk to mark clocks as critical

Since commit 648e921888ad ("clk: x86: Stop marking clocks as
CLK_IS_CRITICAL"), the pmc_plt_clocks of the Bay Trail SoC are
unconditionally gated off. Unfortunately this will break systems where these
clocks are used for external purposes beyond the kernel's knowledge. Fix it
by implementing a system specific quirk to mark the necessary pmc_plt_clks as
critical.

Fixes: 648e921888ad ("clk: x86: Stop marking clocks as CLK_IS_CRITICAL")
Signed-off-by: David Müller <dave.mueller@gmx.ch>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/x86/clk-pmc-atom.c
drivers/platform/x86/pmc_atom.c
include/linux/platform_data/x86/clk-pmc-atom.h