From patchwork Sat Oct 22 07:27:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 7712 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp1109537wrr; Sat, 22 Oct 2022 01:48:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4fIwyYcnnDR0WDYyb81/5+oQcff+2NnZ3NxB0qPQBKVuK4zM5xMhoYPVXNJoHzPKU7qovf X-Received: by 2002:aa7:db01:0:b0:461:4dc9:74e with SMTP id t1-20020aa7db01000000b004614dc9074emr6338934eds.139.1666428536322; Sat, 22 Oct 2022 01:48:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666428536; cv=none; d=google.com; s=arc-20160816; b=UaAnvsH32JUxZF01RuUhHkC4TIewznBkMpdr5q0XhhihDY1eZXPHc/aZcHbqocZjPT ZUsoEOC7BnfcTkffGy3BNolfH5e9g97VU24s7Y868wLXs3RIC5+ePLLA+gy32ty1xkqe S9CO5GMFWiNRq/Q4boprnudY845VKCPjgF1DecFPi7ZocExm5CfxwIEJr7xc+utWhIcb UFs4E8d48dV4XtDFBWojkrPJfNR4ti8q1qNHYZm7CzwEqKAcjLkKVpufBnBtsJ6VDk0r jrMX7Cu3Z9PWU1xMe1PWoXYb0ix38HVgtjXWawsz6u+mWRUyrBbJ36JsfRHOfTSiElJt p7Fw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=MsukG8FIPKGe0ul7cGtKATHXA//Me834/DV/snvCYjs=; b=Z4o/OJ0DJhNK0NEUSkclQndHKwLD7OlARRQX/nbZ6BAgQ5eusW1trwxqBs3+OnBNb/ /HywZ5STkfC503M9QThs54P6RLfb3ipJNKPH0FL2j/Y/n2tBm17DfBlyxlLsIxqiMcAg n1c3jGrnIlXTmxYRGai7sAaKjkIP0ULtTS1Bz7mEO+TSlNQRhaXMzvxq2MDHsmG9tSxQ pIYpgKVcWQbZzyIYDYSn6wseZ7J5kJldNflL8bWypueLzFSjiqMIUiWJ4rxXTIEWJnYk 1iuYXfshOZMuFBjORHw8KNyevZVf02pygIHX0k3X5nly0WAJQepNXfnWox4v6dxsrkFF lNUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=br9hr+Fc; 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=linuxfoundation.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ji3-20020a170907980300b0078e254ae419si26292531ejc.643.2022.10.22.01.48.32; Sat, 22 Oct 2022 01:48:56 -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=@linuxfoundation.org header.s=korg header.b=br9hr+Fc; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234322AbiJVIsD (ORCPT + 99 others); Sat, 22 Oct 2022 04:48:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235229AbiJVIo7 (ORCPT ); Sat, 22 Oct 2022 04:44:59 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C748A2EC21D; Sat, 22 Oct 2022 01:08:57 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 3987960AD7; Sat, 22 Oct 2022 07:59:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 330D6C433C1; Sat, 22 Oct 2022 07:59:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666425570; bh=nLLcqQo2hHrNZnG6RE5P/dIUeAGxE2Muhy9l2Em4mAk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=br9hr+FcL0Gu4MQnbakwJL/UjrTjdao6AX9YzpfN8hVWBFWTUsa7Ow458dGt2Krth /VaUVDxRcWAHM9284fKV3hkFEJJglXvSsB1/T7Ff1aivSOg/0L5uGmEYaIfB+R7ON7 n9JUlRajbNwYIKDKtNO0ZIQ3UNc9tYA0eZ5h4nIQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans de Goede , Arvid Norlander , "Rafael J. Wysocki" , Sasha Levin Subject: [PATCH 5.19 544/717] ACPI: video: Add Toshiba Satellite/Portege Z830 quirk Date: Sat, 22 Oct 2022 09:27:03 +0200 Message-Id: <20221022072522.409051425@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221022072415.034382448@linuxfoundation.org> References: <20221022072415.034382448@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.3 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747376968779878611?= X-GMAIL-MSGID: =?utf-8?q?1747376968779878611?= From: Arvid Norlander [ Upstream commit 574160b8548deff8b80b174f03201e94ab8431e2 ] Toshiba Satellite Z830 needs the quirk video_disable_backlight_sysfs_if for proper backlight control after suspend/resume cycles. Toshiba Portege Z830 is simply the same laptop rebranded for certain markets (I looked through the manual to other language sections to confirm this) and thus also needs this quirk. Thanks to Hans de Goede for suggesting this fix. Link: https://www.spinics.net/lists/platform-driver-x86/msg34394.html Suggested-by: Hans de Goede Signed-off-by: Arvid Norlander Reviewed-by: Hans de Goede Tested-by: Arvid Norlander Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- drivers/acpi/acpi_video.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/drivers/acpi/acpi_video.c b/drivers/acpi/acpi_video.c index eaea733b368a..03f5f92b603c 100644 --- a/drivers/acpi/acpi_video.c +++ b/drivers/acpi/acpi_video.c @@ -496,6 +496,22 @@ static const struct dmi_system_id video_dmi_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "SATELLITE R830"), }, }, + { + .callback = video_disable_backlight_sysfs_if, + .ident = "Toshiba Satellite Z830", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "TOSHIBA"), + DMI_MATCH(DMI_PRODUCT_NAME, "SATELLITE Z830"), + }, + }, + { + .callback = video_disable_backlight_sysfs_if, + .ident = "Toshiba Portege Z830", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "TOSHIBA"), + DMI_MATCH(DMI_PRODUCT_NAME, "PORTEGE Z830"), + }, + }, /* * Some machine's _DOD IDs don't have bit 31(Device ID Scheme) set * but the IDs actually follow the Device ID Scheme.