]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - queue-4.14/platform-x86-pmc_atom-add-several-beckhoff-automatio.patch
8b3ff4d62d63c7ce5078e9b35689c46a9e03fc1b
[thirdparty/kernel/stable-queue.git] / queue-4.14 / platform-x86-pmc_atom-add-several-beckhoff-automatio.patch
1 From e2ee85b44a6f7429d9949ef6525b41655f4ab222 Mon Sep 17 00:00:00 2001
2 From: Steffen Dirkwinkel <s.dirkwinkel@beckhoff.com>
3 Date: Thu, 2 May 2019 15:03:51 +0200
4 Subject: platform/x86: pmc_atom: Add several Beckhoff Automation boards to
5 critclk_systems DMI table
6
7 [ Upstream commit d6423bd03031c020121da26c41a26bd5cc6d0da3 ]
8
9 There are several Beckhoff Automation industrial PC boards which use
10 pmc_plt_clk* clocks for ethernet controllers. This adds affected boards
11 to critclk_systems DMI table so the clocks are marked as CLK_CRITICAL and
12 not turned off.
13
14 Fixes: 648e921888ad ("clk: x86: Stop marking clocks as CLK_IS_CRITICAL")
15 Signed-off-by: Steffen Dirkwinkel <s.dirkwinkel@beckhoff.com>
16 Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
17 Signed-off-by: Sasha Levin <sashal@kernel.org>
18 ---
19 drivers/platform/x86/pmc_atom.c | 24 ++++++++++++++++++++++++
20 1 file changed, 24 insertions(+)
21
22 diff --git a/drivers/platform/x86/pmc_atom.c b/drivers/platform/x86/pmc_atom.c
23 index e3e1f83a2dd7..d4d089c37944 100644
24 --- a/drivers/platform/x86/pmc_atom.c
25 +++ b/drivers/platform/x86/pmc_atom.c
26 @@ -443,6 +443,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 --
58 2.20.1
59