From patchwork Mon Oct 24 11:31:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 8665 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp421862wru; Mon, 24 Oct 2022 05:21:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6DVyAzYSJkBzBIMuPYALvIIaWlYBwl/9NXTTHsqh2CtixI9CWdyTrK25fnbpf7RRhriPTs X-Received: by 2002:a17:907:7e9e:b0:78d:f3b0:fc78 with SMTP id qb30-20020a1709077e9e00b0078df3b0fc78mr27834835ejc.478.1666614081612; Mon, 24 Oct 2022 05:21:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666614081; cv=none; d=google.com; s=arc-20160816; b=fHAaECbDWuRHeLtWaaVq67e8Xe17AxRC3xeKycLn4AUPjzIkpjmV6wjkDn+pFbF3kO P39vDTsq5Hd7oATfZ6ddsQJ1rEOkyz0+cEfMwQVO8HaNiP17c4vxukCsQzmaQCo3N+RF dwjkTAIz9J8bI88uPJa8UesnSuhvh6bGdhYOQsfCy63oW6X5GdAdjND8MytF8SX3/w6m JLYNBfZOq2JFtFATVHnu4FkNldoDJBGTOjs2bih5uJnRajrirt3vD67eloWc4g2sdVbm CtN8vbLTl0a7u/KOGQBvnMuq/IgPj3Mn5Ygjs7m+EAKpujc0uljQxObS/2Ytzs+tY57V +HvQ== 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=S91bFyOSc2hwVxSHovGM/3CboB27qSfT0M7BQD77o90=; b=aN+4+zmHBZ7y9BN/1UY+KU8efMdLNFDj7k9tf/4EuFW1iouCe+hEstv2H1+ODSQxr7 yTz/L94s2LzTqcwLvmGyTs9tmgsiV5CLYKE9J6/2FTHJVZ2KRgSQug66ox3JDQ2DQh14 uESiM6nw1IcrGknW2UPpC0ZD6vEVDK/P0iQWj2z7uOPDuQj+26FBZfbU6h5gxnl8i8bn 9+60iAC3lRMzcJ+ZUUJfBVQhMagoVUsqM441qgZOF63pGFSaiqLzx1a+pugtgrN5Awhe yNxKZtvhDGjpoC79rfy+KTw0dgdXzMujFU5ZmXmeuY//MI95HDjXGFDRJsRul1lsKERx HucA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FxwvBaSI; 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 ne19-20020a1709077b9300b007a92b00c075si2028381ejc.891.2022.10.24.05.20.57; Mon, 24 Oct 2022 05:21:21 -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=FxwvBaSI; 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 S233205AbiJXMR6 (ORCPT + 99 others); Mon, 24 Oct 2022 08:17:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231734AbiJXMQG (ORCPT ); Mon, 24 Oct 2022 08:16:06 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94A2280F41; Mon, 24 Oct 2022 04:56:24 -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 ams.source.kernel.org (Postfix) with ESMTPS id 798EAB811B8; Mon, 24 Oct 2022 11:52:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0C36C433C1; Mon, 24 Oct 2022 11:52:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666612342; bh=ZkKl/EsOt+55to666XhPgsn1/N1tcDCZ1GlCuJY/pbg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FxwvBaSIk+y+cZqDdYSFCYPav31ixjZaJDUgC9jGFwtbn3tiwrZdniwrEz5+wk5be aXsZqu3MbRREXUw4VsWB6gAXrRsFKBNC2hWXO/0FNaU6r/eUDLej2E5mq6qDMYwB+1 SFrYTc4mtBAXzo9OQOvJb3xh/BfoASbZ8v8i9e0g= 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 4.14 161/210] ACPI: video: Add Toshiba Satellite/Portege Z830 quirk Date: Mon, 24 Oct 2022 13:31:18 +0200 Message-Id: <20221024113002.199716272@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024112956.797777597@linuxfoundation.org> References: <20221024112956.797777597@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.6 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?1747571527567838443?= X-GMAIL-MSGID: =?utf-8?q?1747571527567838443?= 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 5a69260edf80..cc228e5ad2b3 100644 --- a/drivers/acpi/acpi_video.c +++ b/drivers/acpi/acpi_video.c @@ -511,6 +511,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.