mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-28 15:20:41 +00:00
platform/x86: msi-laptop: Change DMI match / alias strings to fix module autoloading
[ Upstream commit 2a2565272a
]
On a MSI S270 with Fedora 37 x86_64 / systemd-251.4 the module does not
properly autoload.
This is likely caused by issues with how systemd-udevd handles the single
quote char (') which is part of the sys_vendor / chassis_vendor strings
on this laptop. As a workaround remove the single quote char + everything
behind it from the sys_vendor + chassis_vendor matches. This fixes
the module not autoloading.
Link: https://github.com/systemd/systemd/issues/24715
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20220917210407.647432-1-hdegoede@redhat.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
86691ff784
commit
0a5a50fded
1 changed files with 3 additions and 5 deletions
|
@ -596,11 +596,10 @@ static const struct dmi_system_id msi_dmi_table[] __initconst = {
|
||||||
{
|
{
|
||||||
.ident = "MSI S270",
|
.ident = "MSI S270",
|
||||||
.matches = {
|
.matches = {
|
||||||
DMI_MATCH(DMI_SYS_VENDOR, "MICRO-STAR INT'L CO.,LTD"),
|
DMI_MATCH(DMI_SYS_VENDOR, "MICRO-STAR INT"),
|
||||||
DMI_MATCH(DMI_PRODUCT_NAME, "MS-1013"),
|
DMI_MATCH(DMI_PRODUCT_NAME, "MS-1013"),
|
||||||
DMI_MATCH(DMI_PRODUCT_VERSION, "0131"),
|
DMI_MATCH(DMI_PRODUCT_VERSION, "0131"),
|
||||||
DMI_MATCH(DMI_CHASSIS_VENDOR,
|
DMI_MATCH(DMI_CHASSIS_VENDOR, "MICRO-STAR INT")
|
||||||
"MICRO-STAR INT'L CO.,LTD")
|
|
||||||
},
|
},
|
||||||
.driver_data = &quirk_old_ec_model,
|
.driver_data = &quirk_old_ec_model,
|
||||||
.callback = dmi_check_cb
|
.callback = dmi_check_cb
|
||||||
|
@ -633,8 +632,7 @@ static const struct dmi_system_id msi_dmi_table[] __initconst = {
|
||||||
DMI_MATCH(DMI_SYS_VENDOR, "NOTEBOOK"),
|
DMI_MATCH(DMI_SYS_VENDOR, "NOTEBOOK"),
|
||||||
DMI_MATCH(DMI_PRODUCT_NAME, "SAM2000"),
|
DMI_MATCH(DMI_PRODUCT_NAME, "SAM2000"),
|
||||||
DMI_MATCH(DMI_PRODUCT_VERSION, "0131"),
|
DMI_MATCH(DMI_PRODUCT_VERSION, "0131"),
|
||||||
DMI_MATCH(DMI_CHASSIS_VENDOR,
|
DMI_MATCH(DMI_CHASSIS_VENDOR, "MICRO-STAR INT")
|
||||||
"MICRO-STAR INT'L CO.,LTD")
|
|
||||||
},
|
},
|
||||||
.driver_data = &quirk_old_ec_model,
|
.driver_data = &quirk_old_ec_model,
|
||||||
.callback = dmi_check_cb
|
.callback = dmi_check_cb
|
||||||
|
|
Loading…
Reference in a new issue