From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 08D8FC64ED6 for ; Sun, 26 Feb 2023 15:03:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231533AbjBZPDW (ORCPT ); Sun, 26 Feb 2023 10:03:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231676AbjBZPC4 (ORCPT ); Sun, 26 Feb 2023 10:02:56 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 428101E1E4; Sun, 26 Feb 2023 06:53:38 -0800 (PST) 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 9D91960C47; Sun, 26 Feb 2023 14:52:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D21CC4339B; Sun, 26 Feb 2023 14:52:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1677423122; bh=sb3aBqPeiHW56mJt5ee04rWT0XbiSwmNkuXVbv6bkGE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WMU5HSYJ1tQ0BMNQtfOvv0eQY0Jw3oFi3GufFB4ago6n6ReGRlN8cu+Bgrn+Xy6Bu WaBVZFT8eIv01hxAf8bYuD9sAsQNddpKseHONmV5GLVQOdFDSlmZK8sKmqN1GSd8r5 iQzL6osrISAd2NlpudDhJbYcDNz73RgZZpDzuOpKzwc4FPCM7RdgG9F3bt4+aBtryp Nn7+bZYqINzT0UeSzHBjrmdGtg4UGkNrk1+j9UWA1mWzWN8y3hj9X3H2NeWNGILCfM 1tCEF9jSftVF3iVltBXTN2hCHSF2RQIx9Tf5aZxmhe6miEM4rZdvmeoAIDZ5GHdCyM Q+rb8cayJMEqw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Hans de Goede , "Rafael J . Wysocki" , Sasha Levin , rafael@kernel.org, linux-acpi@vger.kernel.org Subject: [PATCH AUTOSEL 5.4 15/19] ACPI: video: Fix Lenovo Ideapad Z570 DMI match Date: Sun, 26 Feb 2023 09:51:17 -0500 Message-Id: <20230226145123.829229-15-sashal@kernel.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230226145123.829229-1-sashal@kernel.org> References: <20230226145123.829229-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hans de Goede [ Upstream commit 2d11eae42d52a131f06061015e49dc0f085c5bfc ] Multiple Ideapad Z570 variants need acpi_backlight=native to force native use on these pre Windows 8 machines since acpi_video backlight control does not work here. The original DMI quirk matches on a product_name of "102434U" but other variants may have different product_name-s such as e.g. "1024D9U". Move to checking product_version instead as is more or less standard for Lenovo DMI quirks for similar reasons. Signed-off-by: Hans de Goede Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- drivers/acpi/video_detect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/video_detect.c b/drivers/acpi/video_detect.c index e5518b88f7102..ef40cd7f36eba 100644 --- a/drivers/acpi/video_detect.c +++ b/drivers/acpi/video_detect.c @@ -316,7 +316,7 @@ static const struct dmi_system_id video_detect_dmi_table[] = { .ident = "Lenovo Ideapad Z570", .matches = { DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), - DMI_MATCH(DMI_PRODUCT_NAME, "102434U"), + DMI_MATCH(DMI_PRODUCT_VERSION, "Ideapad Z570"), }, }, { -- 2.39.0