Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp15150rwi; Sun, 9 Oct 2022 17:31:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7srIGWHoBO9IFufWHrT+WfLnzUw1E1K2jhhn22KXOyY6MlZ+wDzPAnjK5cAnp8sI/Q0f16 X-Received: by 2002:aa7:c6c1:0:b0:459:4591:f42f with SMTP id b1-20020aa7c6c1000000b004594591f42fmr15045381eds.318.1665361886625; Sun, 09 Oct 2022 17:31:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665361886; cv=none; d=google.com; s=arc-20160816; b=cfLd6l/IBNVW6BpmF48Y3KyhyxbFTmgD1Wa5TS7nYwbUfW/WSUh02LbO8YRczo2wCB kxGHmPaCtjrIdv97UJWX6siJwO1Y2w7Yyshjclzvy+9+vNFCMh34aJ/ygShPRpFuJ8x1 u0Miygs0w9I7Zx3TlkSPU7A6TynQkJntY7Qu/WzvwtCdEOE8W2sXGvwkzsFIL6YyGJQQ W7VPBzFkRhiBW/91/7ErMa28yRbOxf/i5EDH71qZFhbUvO5cSO2rS2DBN0iZ76Kd4//v tJSx3woZEJ3sTARX2K9Wn492foH9HOMYCwSpxTs7m3GEpeIOjJVjWHs7U+89Wob2Yc18 R+aA== 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=nISW4SLtbPaFHplErg+4c/1hF6RjLAh1Z7Rtw3ERZIc=; b=XlRJSyHUnPkFQggClbnP//UwTaAkOB/sTb1/OUj4xO+0w6cfvc3hgdqU0a0PFXkdiy r3fwyQhSBpGrLuWhGnoRZZ+asFIjXt286dyIfAFB8N8cIRTuH/4yyjhhZBwkPVJLNNK+ PeLafWWsKVswvxVzkJofCpMW0WvWkkif3a07NOQbm+CGApXrgQGc+YmbMDMlWlTZppyQ VT8fRlqWE0SSZqqVXHvhJxQZ2UOJ496dJonA7FurhVTwrAJgWH0HOshYdCu9H/jGj0ci BfbDVYufp+eV0kWHPu/mSPZ3HYf5Yhu5ugzYAKXNy0LL+Y5Xj+LGtlNESIMrPc7TFmLR D0ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=f5imAO8d; 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 vj23-20020a170907131700b0078aae728f28si6826333ejb.911.2022.10.09.17.30.59; Sun, 09 Oct 2022 17:31:26 -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=f5imAO8d; 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 S232116AbiJJA0v (ORCPT + 99 others); Sun, 9 Oct 2022 20:26:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232783AbiJJAWl (ORCPT ); Sun, 9 Oct 2022 20:22:41 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D61DC1583C; Sun, 9 Oct 2022 16:56:39 -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 ams.source.kernel.org (Postfix) with ESMTPS id 93733B80DEA; Sun, 9 Oct 2022 23:56:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 96197C433D6; Sun, 9 Oct 2022 23:56:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665359797; bh=nlsFU6+qAFHENonUxtCRXgN1MbdHlXKsPAZ0zCns0UI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f5imAO8dcJZH0g03y2DhiZzDrpUSnH3fGzgwAzyMwkmF1bd9LOUzRyj2QFeiIZMbj w+hwK6JDnw9aKFVWSlCj8dZDum8+/g6R0sRqdRTrAF59JtZQby2jvI17NiRSMVGuWS fFy/hD22isFC1RUKspf/Y85l1MOBL7FkiHmTwe8RPtIfwsa+Y0GS0tjXN0KGN3lf45 QCb7lh2mYgq1ObrKe8dGJQvxC8CTRB1H/NRN6Q4zOTRUEeMG1/3vippI246lA0NyJJ nV736ahhxxr8LqyQbQxgZL8iaI9IbigYdY/mHe4kgo7qQLbGldypL+pMVotDgd/x6c mpdBGdGo/L8Tg== 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 5.10 14/22] platform/x86: msi-laptop: Change DMI match / alias strings to fix module autoloading Date: Sun, 9 Oct 2022 19:55:32 -0400 Message-Id: <20221009235540.1231640-14-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221009235540.1231640-1-sashal@kernel.org> References: <20221009235540.1231640-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 24ffc8e2d2d1..d8a94968aedc 100644 --- a/drivers/platform/x86/msi-laptop.c +++ b/drivers/platform/x86/msi-laptop.c @@ -596,11 +596,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 @@ -633,8 +632,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