]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/4.19.53/platform-x86-pmc_atom-add-lex-3i380d-industrial-pc-t.patch
4.9-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 4.19.53 / platform-x86-pmc_atom-add-lex-3i380d-industrial-pc-t.patch
1 From b96e67bd55410412b12999b87d7ef8b666b109af Mon Sep 17 00:00:00 2001
2 From: Hans de Goede <hdegoede@redhat.com>
3 Date: Mon, 29 Apr 2019 17:01:35 +0200
4 Subject: platform/x86: pmc_atom: Add Lex 3I380D industrial PC to
5 critclk_systems DMI table
6
7 [ Upstream commit 3d0818f5eba80fbe4c0addbfe6ddb2d19dc82cd4 ]
8
9 The Lex 3I380D industrial PC has 4 ethernet controllers on board
10 which need pmc_plt_clk0 - 3 to function, add it to the critclk_systems
11 DMI table, so that drivers/clk/x86/clk-pmc-atom.c will mark the clocks
12 as CLK_CRITICAL and they will not get turned off.
13
14 Fixes: 648e921888ad ("clk: x86: Stop marking clocks as CLK_IS_CRITICAL")
15 Reported-and-tested-by: Semyon Verchenko <semverchenko@factor-ts.ru>
16 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
17 Acked-by: Andy Shevchenko <andy.shevchenko@gmail.com>
18 Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
19 Signed-off-by: Sasha Levin <sashal@kernel.org>
20 ---
21 drivers/platform/x86/pmc_atom.c | 9 +++++++++
22 1 file changed, 9 insertions(+)
23
24 diff --git a/drivers/platform/x86/pmc_atom.c b/drivers/platform/x86/pmc_atom.c
25 index c7039f52ad51..a311f48ce7c9 100644
26 --- a/drivers/platform/x86/pmc_atom.c
27 +++ b/drivers/platform/x86/pmc_atom.c
28 @@ -398,12 +398,21 @@ static int pmc_dbgfs_register(struct pmc_dev *pmc)
29 */
30 static const struct dmi_system_id critclk_systems[] = {
31 {
32 + /* pmc_plt_clk0 is used for an external HSIC USB HUB */
33 .ident = "MPL CEC1x",
34 .matches = {
35 DMI_MATCH(DMI_SYS_VENDOR, "MPL AG"),
36 DMI_MATCH(DMI_PRODUCT_NAME, "CEC10 Family"),
37 },
38 },
39 + {
40 + /* pmc_plt_clk0 - 3 are used for the 4 ethernet controllers */
41 + .ident = "Lex 3I380D",
42 + .matches = {
43 + DMI_MATCH(DMI_SYS_VENDOR, "Lex BayTrail"),
44 + DMI_MATCH(DMI_PRODUCT_NAME, "3I380D"),
45 + },
46 + },
47 { /*sentinel*/ }
48 };
49
50 --
51 2.20.1
52