platform/x86: pmc_atom: Add Siemens SIMATIC IPC2x7E to critclk_systems DMI table
PATCH 1/1 platform/x86: pmc_atom: Add Siemens SIMATIC IPC2x7E to critclk_systems DMI table
The SIMATIC IPC227E and IPC277E uses the PMC clock for on-board components and gets stuck during boot if the clock is disabled. Therefore, add this device to the critical systems list.
The Board revision does vary in some instances and hence use PRODUCT_NAME to allow the boards to boot with identical names.
Tested on SIMATIC IPC227E and IPC277E.
--- drivers/platform/x86/pmc_atom.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
drivers/platform/x86/pmc_atom.c +8 -1
@@ -419,7 +419,14 @@ static const struct dmi_system_id critclk_systems[] = { .ident = "SIMATIC IPC227E", .matches = {DMI_MATCH (DMI_SYS_VENDOR ,"SIEMENS AG" ), - DMI_MATCH(DMI_PRODUCT_VERSION, "6ES7647-8B"), + DMI_MATCH(DMI_PRODUCT_NAME, "SIMATIC IPC227E"), + }, + }, + { + .ident ="SIMATIC IPC277E" , + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"SIEMENS AG" ), + DMI_MATCH(DMI_PRODUCT_NAME, "SIMATIC IPC277E"), }, }, { /*sentinel*/ }
Signature · 1 line
2.17.1
Jan Kiszka
NAKQuoted 22 lines · Srikanth Krishnakar
The SIMATIC IPC227E and IPC277E uses the PMC clock for on-board components and gets stuck during boot if the clock is disabled. Therefore, add this device to the critical systems list.
The Board revision does vary in some instances and hence use
PRODUCT_NAMEto allow the boards to boot with identical names.Tested on SIMATIC IPC227E and IPC277E.
Fixes 648e921888ad ("clk: x86: Stop marking clocks as CLK_IS_CRITICAL")CC Jan Kiszka <[email protected]>CC Cedric Hombourger <[email protected]>Signed-off-by Srikanth Krishnakar <[email protected]>--- drivers/platform/x86/pmc_atom.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)drivers/platform/x86/pmc_atom.c +0
-0
drivers/platform/x86/pmc_atom.c static const struct dmi_system_id critclk_systems[] = { · line 422
Quoted 5 lines
drivers/platform/x86/pmc_atom.c +1
-1@@ -419,7 +419,14 @@ static const struct dmi_system_id critclk_systems[] = { .ident = "SIMATIC IPC227E", .matches = {DMI_MATCH (DMI_SYS_VENDOR ,"SIEMENS AG" ), - DMI_MATCH(DMI_PRODUCT_VERSION, "6ES7647-8B"), + DMI_MATCH(DMI_PRODUCT_NAME, "SIMATIC IPC227E"),
NACK, this is breaking platform variant detection.
drivers/platform/x86/pmc_atom.c static const struct dmi_system_id critclk_systems[] = { · line 429
Quoted 7 lines
drivers/platform/x86/pmc_atom.c +7
-0+ }, + }, + { + .ident = "SIMATIC IPC277E", + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"SIEMENS AG" ), + DMI_MATCH(DMI_PRODUCT_NAME, "SIMATIC IPC277E"),
Let us clarify internally if we need to match on the same substring length as for the 227E.
Jan
Quoted 4 lines
drivers/platform/x86/pmc_atom.c +0
-0}, }, {/*sentinel*/ }
Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux