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 1839FC4167B for ; Sat, 17 Dec 2022 15:29:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230108AbiLQP3L (ORCPT ); Sat, 17 Dec 2022 10:29:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229872AbiLQP2X (ORCPT ); Sat, 17 Dec 2022 10:28:23 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 410F11649D; Sat, 17 Dec 2022 07:27:50 -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 ams.source.kernel.org (Postfix) with ESMTPS id DF703B803F5; Sat, 17 Dec 2022 15:27:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DB4CCC433F0; Sat, 17 Dec 2022 15:27:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671290868; bh=joUiXrawmAJHiaVDfPQdm0pzrZtel83AWOUVXLSsXaw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Wpr0SB3m/6qCwbpM32IYpkMvQf5+O6jyHMlD1mzLZZtGSMNP/WsPfVdn99xKoVaNo UqiLoj3c4Ha430mnzvMZgHCmAKTEiMUTVp8PRI00+ywrRU9QOWr04P5jrUl7YPd1Av KgR6QLJQD/O+lYPbcoeIdGr0/exyfkZETmt8qmkiNrdRQchKP4sBu0NxRuYqSPNkrm kr9x1FUs9hj5zH9tHpGu28KHi8FWbfBvXNicXd/bplZkan3blodvWXyCkp9FWgDyLI 5bzFRGB6xmsLlAEv94O9RyVuEdI6j5nRy2Sa9n1Hzc6Mvr//ry4RaYIFjrQknFzMz0 ylNM4+JdezwMg== 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 6.1 11/22] ACPI: video: Add force_vendor quirk for Sony Vaio PCG-FRV35 Date: Sat, 17 Dec 2022 10:27:12 -0500 Message-Id: <20221217152727.98061-11-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221217152727.98061-1-sashal@kernel.org> References: <20221217152727.98061-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-acpi@vger.kernel.org From: Hans de Goede [ Upstream commit 23735543eb228c604e59f99f2f5d13aa507e5db2 ] The Sony Vaio PCG-FRV35 advertises both native and vendor backlight control interfaces. With the upcoming changes to prefer native over vendor acpi_video_get_backlight_type() will start returning native on these laptops. But the native radeon_bl0 interface does not work, where as the sony vendor interface does work. Add a quirk to force use of the vendor interface. Signed-off-by: Hans de Goede Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- drivers/acpi/video_detect.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/acpi/video_detect.c b/drivers/acpi/video_detect.c index 0ab98f2e484c..8e8b435b4c8c 100644 --- a/drivers/acpi/video_detect.c +++ b/drivers/acpi/video_detect.c @@ -237,6 +237,19 @@ static const struct dmi_system_id video_detect_dmi_table[] = { }, }, + /* + * Models which should use the vendor backlight interface, + * because of broken native backlight control. + */ + { + .callback = video_detect_force_vendor, + /* Sony Vaio PCG-FRV35 */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Sony Corporation"), + DMI_MATCH(DMI_PRODUCT_NAME, "PCG-FRV35"), + }, + }, + /* * Toshiba models with Transflective display, these need to use * the toshiba_acpi vendor driver for proper Transflective handling. -- 2.35.1