clk: x86: Do not gate clocks enabled by the firmware
authorCarlo Caione <carlo@endlessm.com>
Fri, 14 Jul 2017 08:23:56 +0000 (10:23 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Tue, 18 Jul 2017 23:23:13 +0000 (16:23 -0700)
commitd31fd43c0f9a41e2678a1e78c0f22f0384c6edd3
treec2628451c9e5f87a3e5f104e577032848101ab12
parentf905293d655cbb8be833261ef390aaba71b44307
clk: x86: Do not gate clocks enabled by the firmware

Read the enable register to determine if the clock is already in use by
the firmware. In this case avoid gating the clock.

Tested-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Darren Hart (VMware) <dvhart@infradead.org>
Signed-off-by: Carlo Caione <carlo@endlessm.com>
Fixes: 282a4e4ce5f9 ("platform/x86: Enable Atom PMC platform clocks")
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/x86/clk-pmc-atom.c