]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit183125dad2dc423c78de379aeac4ea88a57cda99
tree49390d3305bda6d110ad8a71a871d36bc43192b3
parent12508eae530fa517451f0654671714aa8b95c01f
clk: x86: Add system specific quirk to mark clocks as critical

Since commit ff06eadd41c1 ("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: ff06eadd41c1 ("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