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 6C6F2EEB566 for ; Fri, 8 Sep 2023 18:00:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245522AbjIHSA1 (ORCPT ); Fri, 8 Sep 2023 14:00:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245489AbjIHSA0 (ORCPT ); Fri, 8 Sep 2023 14:00:26 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38E3D1FFD; Fri, 8 Sep 2023 11:00:19 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EDECAC433C9; Fri, 8 Sep 2023 18:00:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694196018; bh=msTAPY2tH/ZIgLxHjA1ifUg2ihzLBsLTG3rIhwSDHEA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VS6iodcoBihspUSWj8F7YH9eIMugKdSeVkcnUu/oNoZCzGqzoJs4dg5G9LjnIYBpV GIRJVzO5CIe6HX0pEUxFKncOAoKBYLHcNCA77R0lvqIKWPlJg909GSPmBRPVe0Y3Sj CWxbs80ujnYbpM9V0hwl3mG606kS9yUucKcSe33+OlngAnP/Ql2A/MBb240Yl/78Hh EYDcjuwTI1UjcNZyFxFCXfpp3VtPYu7B3jFb5rqneAs55cGAUJTSY2ke4wwhwPPMCO C/KncczYMFm3lcbx/TG/eB+tp7gaYFRI5v4VQcdFSt2gvg0Xcpgfxc80oJcJNTY69T EAq9G56nr1T4g== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: "Jiri Slaby (SUSE)" , Hans de Goede , "Rafael J . Wysocki" , Sasha Levin , rafael@kernel.org, linux-acpi@vger.kernel.org Subject: [PATCH AUTOSEL 6.5 05/16] ACPI: video: Add backlight=native DMI quirk for Lenovo Ideapad Z470 Date: Fri, 8 Sep 2023 13:59:42 -0400 Message-Id: <20230908175953.3457942-5-sashal@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230908175953.3457942-1-sashal@kernel.org> References: <20230908175953.3457942-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.5.2 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org From: "Jiri Slaby (SUSE)" [ Upstream commit 96b709be183c56293933ef45b8b75f8af268c6de ] The Lenovo Ideapad Z470 predates Windows 8, so it defaults to using acpi_video for backlight control. But this is not functional on this model. Add a DMI quirk to use the native backlight interface which works. Link: https://bugzilla.suse.com/show_bug.cgi?id=1208724 Signed-off-by: Jiri Slaby (SUSE) Reviewed-by: Hans de Goede Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- drivers/acpi/video_detect.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/acpi/video_detect.c b/drivers/acpi/video_detect.c index 18cc08c858cf2..0c376edd64fe1 100644 --- a/drivers/acpi/video_detect.c +++ b/drivers/acpi/video_detect.c @@ -445,6 +445,15 @@ static const struct dmi_system_id video_detect_dmi_table[] = { DMI_MATCH(DMI_BOARD_NAME, "Lenovo IdeaPad S405"), }, }, + { + /* https://bugzilla.suse.com/show_bug.cgi?id=1208724 */ + .callback = video_detect_force_native, + /* Lenovo Ideapad Z470 */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), + DMI_MATCH(DMI_PRODUCT_VERSION, "IdeaPad Z470"), + }, + }, { /* https://bugzilla.redhat.com/show_bug.cgi?id=1187004 */ .callback = video_detect_force_native, -- 2.40.1