Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

platform/x86: pmc_atom: Match all Lex BayTrail boards with critclk_systems DMI table

The critclk_systems[] DMI match table already contains 2 Lex BayTrail
boards and patches were just submitted to add 3 more entries for the
following models: 3I380NX, 3I380A, 3I380CW.

Looking at: https://www.lex.com.tw/products/embedded-ipc-board/
we can see that Lex BayTrail makes many embedded boards with
multiple ethernet boards and none of their products are battery
powered so we don't need to worry (too much) about power consumption
when suspended.

Add a new DMI match which simply matches all Lex BayTrail boards and drop
the 2 existing board specific quirks.

Fixes: 648e921888ad ("clk: x86: Stop marking clocks as CLK_IS_CRITICAL")
Reported-by: Michael Schöne <michael.schoene@rhebo.com>
Reported-by: Paul Spooren <paul.spooren@rhebo.com>
Reported-by: Matwey V. Kornilov <matwey@sai.msu.ru>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>

+7 -12
+7 -12
drivers/platform/x86/pmc_atom.c
··· 389 389 }, 390 390 }, 391 391 { 392 - /* pmc_plt_clk0 - 3 are used for the 4 ethernet controllers */ 393 - .ident = "Lex 3I380D", 392 + /* 393 + * Lex System / Lex Computech Co. makes a lot of Bay Trail 394 + * based embedded boards which often come with multiple 395 + * ethernet controllers using multiple pmc_plt_clks. See: 396 + * https://www.lex.com.tw/products/embedded-ipc-board/ 397 + */ 398 + .ident = "Lex BayTrail", 394 399 .callback = dmi_callback, 395 400 .matches = { 396 401 DMI_MATCH(DMI_SYS_VENDOR, "Lex BayTrail"), 397 - DMI_MATCH(DMI_PRODUCT_NAME, "3I380D"), 398 - }, 399 - }, 400 - { 401 - /* pmc_plt_clk* - are used for ethernet controllers */ 402 - .ident = "Lex 2I385SW", 403 - .callback = dmi_callback, 404 - .matches = { 405 - DMI_MATCH(DMI_SYS_VENDOR, "Lex BayTrail"), 406 - DMI_MATCH(DMI_PRODUCT_NAME, "2I385SW"), 407 402 }, 408 403 }, 409 404 {