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 47BDBEEB562 for ; Fri, 8 Sep 2023 18:04:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343540AbjIHSEl (ORCPT ); Fri, 8 Sep 2023 14:04:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343566AbjIHSEi (ORCPT ); Fri, 8 Sep 2023 14:04:38 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2337626B7; Fri, 8 Sep 2023 11:04:09 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B6356C116A1; Fri, 8 Sep 2023 18:04:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694196244; bh=REWAD7E/MGhVxUApTYZNDRMZnuGGT4TE1X1TEag/34E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aFpBtqglen8h+AsGv1WfRlAPBNB95dSf+6Gyk3e/zJMemP1gH4iOSfciF7OGwvHmB jF5Va9r61ZoZ4qe5HiV/QfdjYMF1aFkUI8siJq2d+z2GMYXYfjVXBdmmbJR5OYbGQ6 2bC73rvStsOCoDSPTL7tJPaaKFEG30mczGU8Q8rK00NqdIq8ETprL5cQtzAkq9yuW6 PfAPbSv5lb2Fa3vPVsQeN+F/G7bpb8XHtA44XMa0fFhyWoCMgudlzt/kgPe4HxIo6b Xm5e069Juzt1XlQVdCWlJx8nLMoTsTZe3wZbg4SN3QcQlzQNu9D7KlFNkVZc00EtXE Il/I50FcMRImg== 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 5.4 3/5] ACPI: video: Add backlight=native DMI quirk for Lenovo Ideapad Z470 Date: Fri, 8 Sep 2023 14:03:49 -0400 Message-Id: <20230908180352.3458731-3-sashal@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230908180352.3458731-1-sashal@kernel.org> References: <20230908180352.3458731-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 5.4.256 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 ef40cd7f36eba..be9c70806b620 100644 --- a/drivers/acpi/video_detect.c +++ b/drivers/acpi/video_detect.c @@ -310,6 +310,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