1be5c62424ccf3eebdb08d1885a2b6a45a0a8fbe
[openwrt/staging/ldir.git] / target / linux / x86 / patches-5.10 / 113-v5.21-platform-x86-pmc_atom-Add-Lex-3I380NX-industrial-PC-.patch
1 From: Hans de Goede <hdegoede@redhat.com>
2 Date: Thu, 28 Jul 2022 20:06:35 +0200
3 Subject: platform/x86: pmc_atom: Match all Lex BayTrail boards with
4 critclk_systems DMI table
5
6 The critclk_systems[] DMI match table already contains 2 Lex BayTrail
7 boards and patches were just submitted to add 3 more entries for the
8 following models: 3I380NX, 3I380A, 3I380CW.
9
10 Looking at: https://www.lex.com.tw/products/embedded-ipc-board/
11 we can see that Lex BayTrail makes many embedded boards with
12 multiple ethernet boards and none of their products are battery
13 powered so we don't need to worry (too much) about power consumption
14 when suspended.
15
16 Add a new DMI match which simply matches all Lex BayTrail boards and drop
17 the 2 existing board specific quirks.
18
19 Reported-by: Michael Schöne <michael.schoene@rhebo.com>
20 Reported-by: Paul Spooren <paul.spooren@rhebo.com>
21 Reported-by: Matwey V. Kornilov <matwey@sai.msu.ru>
22 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
23 ---
24 --- a/drivers/platform/x86/pmc_atom.c
25 +++ b/drivers/platform/x86/pmc_atom.c
26 @@ -376,19 +376,15 @@ static const struct dmi_system_id critcl
27 },
28 },
29 {
30 - /* pmc_plt_clk0 - 3 are used for the 4 ethernet controllers */
31 - .ident = "Lex 3I380D",
32 + /*
33 + * Lex System / Lex Computech Co. makes a lot of Bay Trail
34 + * based embedded boards which often come with multiple
35 + * ethernet controllers using multiple pmc_plt_clks. See:
36 + * https://www.lex.com.tw/products/embedded-ipc-board/
37 + */
38 + .ident = "Lex BayTrail",
39 .matches = {
40 DMI_MATCH(DMI_SYS_VENDOR, "Lex BayTrail"),
41 - DMI_MATCH(DMI_PRODUCT_NAME, "3I380D"),
42 - },
43 - },
44 - {
45 - /* pmc_plt_clk* - are used for ethernet controllers */
46 - .ident = "Lex 2I385SW",
47 - .matches = {
48 - DMI_MATCH(DMI_SYS_VENDOR, "Lex BayTrail"),
49 - DMI_MATCH(DMI_PRODUCT_NAME, "2I385SW"),
50 },
51 },
52 {