]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - queue-5.1/platform-x86-pmc_atom-add-several-beckhoff-automatio.patch
5.1-stable patches
[thirdparty/kernel/stable-queue.git] / queue-5.1 / platform-x86-pmc_atom-add-several-beckhoff-automatio.patch
CommitLineData
fb43722c
SL
1From 3360ff253cbbb086387fd0288421a13144481d3e Mon Sep 17 00:00:00 2001
2From: Steffen Dirkwinkel <s.dirkwinkel@beckhoff.com>
3Date: Thu, 2 May 2019 15:03:51 +0200
4Subject: platform/x86: pmc_atom: Add several Beckhoff Automation boards to
5 critclk_systems DMI table
6
7[ Upstream commit d6423bd03031c020121da26c41a26bd5cc6d0da3 ]
8
9There are several Beckhoff Automation industrial PC boards which use
10pmc_plt_clk* clocks for ethernet controllers. This adds affected boards
11to critclk_systems DMI table so the clocks are marked as CLK_CRITICAL and
12not turned off.
13
14Fixes: 648e921888ad ("clk: x86: Stop marking clocks as CLK_IS_CRITICAL")
15Signed-off-by: Steffen Dirkwinkel <s.dirkwinkel@beckhoff.com>
16Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
17Signed-off-by: Sasha Levin <sashal@kernel.org>
18---
19 drivers/platform/x86/pmc_atom.c | 24 ++++++++++++++++++++++++
20 1 file changed, 24 insertions(+)
21
22diff --git a/drivers/platform/x86/pmc_atom.c b/drivers/platform/x86/pmc_atom.c
23index a311f48ce7c9..b1d804376237 100644
24--- a/drivers/platform/x86/pmc_atom.c
25+++ b/drivers/platform/x86/pmc_atom.c
26@@ -413,6 +413,30 @@ static const struct dmi_system_id critclk_systems[] = {
27 DMI_MATCH(DMI_PRODUCT_NAME, "3I380D"),
28 },
29 },
30+ {
31+ /* pmc_plt_clk* - are used for ethernet controllers */
32+ .ident = "Beckhoff CB3163",
33+ .matches = {
34+ DMI_MATCH(DMI_SYS_VENDOR, "Beckhoff Automation"),
35+ DMI_MATCH(DMI_BOARD_NAME, "CB3163"),
36+ },
37+ },
38+ {
39+ /* pmc_plt_clk* - are used for ethernet controllers */
40+ .ident = "Beckhoff CB6263",
41+ .matches = {
42+ DMI_MATCH(DMI_SYS_VENDOR, "Beckhoff Automation"),
43+ DMI_MATCH(DMI_BOARD_NAME, "CB6263"),
44+ },
45+ },
46+ {
47+ /* pmc_plt_clk* - are used for ethernet controllers */
48+ .ident = "Beckhoff CB6363",
49+ .matches = {
50+ DMI_MATCH(DMI_SYS_VENDOR, "Beckhoff Automation"),
51+ DMI_MATCH(DMI_BOARD_NAME, "CB6363"),
52+ },
53+ },
54 { /*sentinel*/ }
55 };
56
57--
582.20.1
59