Skip to contentSkip to conversation

platform/x86: pmc_atom: Add Lex 2I385SW to critclk_systems DMI table

PATCH In review Georg Müller 2 participants 2 messages Feb 3, 2020 x86 platform drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 platform/x86: pmc_atom: Add Lex 2I385SW to critclk_systems DMI table

The Lex 2I385SW board has two Intel I211 ethernet controllers. Without this patch, only the first port is usable. The second port fails to start with the following message:

    igb: probe of 0000:02:00.0 failed with error -2
Fixes 648e921888ad ("clk: x86: Stop marking clocks as CLK_IS_CRITICAL")
---
 drivers/platform/x86/pmc_atom.c | 8 ++++++++
 1 file changed, 8 insertions(+)
drivers/platform/x86/pmc_atom.c +8 -0
index 3e3c66dfec2e..ca684ed760d1 100644
@@ -383,6 +383,14 @@ static const struct dmi_system_id critclk_systems[] = {
 			DMI_MATCH(DMI_PRODUCT_NAME, "3I380D"),
 		},
 	},
+	{
+		/* pmc_plt_clk* - are used for ethernet controllers */
+		.ident = "Lex 2I385SW",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Lex BayTrail"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "2I385SW"),
+		},
+	},
 	{
 		/* pmc_plt_clk* - are used for ethernet controllers */
 		.ident = "Beckhoff CB3163",

--
2.24.1

Reviewed-by on v1 1/1
#1 lore raw

Hi,

Quoted 9 lines · Georg Müller

The Lex 2I385SW board has two Intel I211 ethernet controllers. Without this patch, only the first port is usable. The second port fails to start with the following message:

     igb: probe of 0000:02:00.0 failed with error -2
Fixes 648e921888ad ("clk: x86: Stop marking clocks as CLK_IS_CRITICAL")

Patch looks good to me:

Regards,

Hans

Quoted 26 lines
---
  drivers/platform/x86/pmc_atom.c | 8 ++++++++
  1 file changed, 8 insertions(+)
drivers/platform/x86/pmc_atom.c +8 -1
index 3e3c66dfec2e..ca684ed760d1 100644
@@ -383,6 +383,14 @@ static const struct dmi_system_id critclk_systems[] = {
  			DMI_MATCH(DMI_PRODUCT_NAME, "3I380D"),
  		},
  	},
+	{
+		/* pmc_plt_clk* - are used for ethernet controllers */
+		.ident = "Lex 2I385SW",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Lex BayTrail"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "2I385SW"),
+		},
+	},
  	{
  		/* pmc_plt_clk* - are used for ethernet controllers */
  		.ident = "Beckhoff CB3163",
--

2.24.1