Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp65541rwi; Sun, 9 Oct 2022 18:36:07 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4qfVd2OrZDYuSK1dXWrxrZDwqK6O3j48O7oByP2Nr+bZm5+R6lEvYqLq+Wm4zDDN/iFRUT X-Received: by 2002:a17:90b:1bc7:b0:20d:290c:7800 with SMTP id oa7-20020a17090b1bc700b0020d290c7800mr7369962pjb.42.1665365766773; Sun, 09 Oct 2022 18:36:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665365766; cv=none; d=google.com; s=arc-20160816; b=hm0hwKNnSynfHYs9QsDQ8IHSTQJxfXdEYaa3ZULX9YNPg9ZUh79WBQWNH/vdJmWlAk 8/Y4RYpHrY4ySmY2dY0lr8Kwsvaop0/v5NduGMKiDZgJl67S7FwuBSVFtVIiwuDOEasf SlDNUvcUV1C3AAe0qn60rJGF9UVDzuysRIIsWyC6/o20G0yJX69JLsnXpXlk/yPsbytT cUi6M6xmLjIFEmdZAF+jlGanIPhFv7CGfpF3gYea6F7HV1sYqE2JvVMnMu/cy4tDIw7l 2on2cM+hSzIDUyzo9C/xwhVDcmYyuC35qDfQv1bCyVrryZyMLMgtCR4AicRPxqd1CrV6 lKiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=UwUKL78fkRQfMyuEyVEUdnbEQ/iF7orZHZQxEjOOwZA=; b=LfRlWL1vDG0SFUCasYWQG1EX1XCAsvKL7Exzy+cAgJaoYPYYC8we9nVh229ghoh+EZ wAuatTdpQ5DDRSLJRBsup1INKhOnsRI8HmFMAhyb9noYT2iS3C4Gt1b3Tz75js9x9H+K oGe4txgz9pzNu9blq91aB2ybw9vnc8FhNKANAdNchTPK0a/ylLHHOjbXUlh5vQ5H6Aw2 1xF0yHFtYewuH2Cwgz5E/VhOp/oBPR7Ihx81p/OODsKYJ1nosDG2LShoLJf1vlw1h036 3fy4k4Q+/FrvICFxy+evkgLZdbv7U8ViexHg8hPE0+IYlHqPwG2kw+FyRaslLQyKvMZ0 acYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="nftwYuI/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o7-20020a63f147000000b0043bddc90f10si10986651pgk.79.2022.10.09.18.35.54; Sun, 09 Oct 2022 18:36:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="nftwYuI/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233476AbiJJA3e (ORCPT + 99 others); Sun, 9 Oct 2022 20:29:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232971AbiJJAX6 (ORCPT ); Sun, 9 Oct 2022 20:23:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88CDA3D59F; Sun, 9 Oct 2022 16:58:02 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 266DD60C27; Sun, 9 Oct 2022 23:58:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DAEF4C433D6; Sun, 9 Oct 2022 23:58:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665359881; bh=oB3xpT3Zs7hadFynM24sKouggPpK1LgwIk14AdEUvRU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nftwYuI/RNbh8PfxlKeGWMNzscTrfmKm6LVbLUloeaxLwp3dkiUu5JrOeQyHy6iSB NQhxavPHOCucrC4joOcmW6/BUwuzzFu/35DicvxhjlumR1fDFO2Qp/XHo64ZRjsdRl KkVzxjDEUnaY6DgAe//BmOBO6mFvhlPwLqLqzBgvgqiEsaAN7cIcclr0SixKuc2FwT 2QbN1xZ0Z7ZezXlxxeMA7A76CiKOkpJtGpUz+nhwvFzi+RIG80wZ5e4OF5sjxGOJoM sgCc7JHbqelofntFvoS44+pqUuaTz+recFAS9DjxNnPOnaoARVoXWywX66qoIPRYHb oFWzXXnoirYDQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Hans de Goede , Sasha Levin , jlee@suse.com, markgross@kernel.org, platform-driver-x86@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 08/10] platform/x86: msi-laptop: Change DMI match / alias strings to fix module autoloading Date: Sun, 9 Oct 2022 19:57:43 -0400 Message-Id: <20221009235746.1232129-8-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221009235746.1232129-1-sashal@kernel.org> References: <20221009235746.1232129-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hans de Goede [ Upstream commit 2a2565272a3628e45d61625e36ef17af7af4e3de ] 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 Link: https://lore.kernel.org/r/20220917210407.647432-1-hdegoede@redhat.com Signed-off-by: Sasha Levin --- drivers/platform/x86/msi-laptop.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/platform/x86/msi-laptop.c b/drivers/platform/x86/msi-laptop.c index d5bfcc602090..3ad6ab5d2113 100644 --- a/drivers/platform/x86/msi-laptop.c +++ b/drivers/platform/x86/msi-laptop.c @@ -609,11 +609,10 @@ static const struct dmi_system_id msi_dmi_table[] __initconst = { { .ident = "MSI S270", .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_VERSION, "0131"), - DMI_MATCH(DMI_CHASSIS_VENDOR, - "MICRO-STAR INT'L CO.,LTD") + DMI_MATCH(DMI_CHASSIS_VENDOR, "MICRO-STAR INT") }, .driver_data = &quirk_old_ec_model, .callback = dmi_check_cb @@ -646,8 +645,7 @@ static const struct dmi_system_id msi_dmi_table[] __initconst = { DMI_MATCH(DMI_SYS_VENDOR, "NOTEBOOK"), DMI_MATCH(DMI_PRODUCT_NAME, "SAM2000"), DMI_MATCH(DMI_PRODUCT_VERSION, "0131"), - DMI_MATCH(DMI_CHASSIS_VENDOR, - "MICRO-STAR INT'L CO.,LTD") + DMI_MATCH(DMI_CHASSIS_VENDOR, "MICRO-STAR INT") }, .driver_data = &quirk_old_ec_model, .callback = dmi_check_cb -- 2.35.1