From patchwork Mon Oct 24 11:31:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 9169 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp457823wru; Mon, 24 Oct 2022 06:36:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4TzQJK6uBvpZtkvLvXwdOmReBpg8NataouQhLPXrIDRY3eaUd4GlqsIP644vDbGDD9PoRh X-Received: by 2002:a05:6402:5ca:b0:43b:6e01:482c with SMTP id n10-20020a05640205ca00b0043b6e01482cmr31459859edx.189.1666618595550; Mon, 24 Oct 2022 06:36:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666618595; cv=none; d=google.com; s=arc-20160816; b=PkbZxRQEquvC6q57iY1EfxJTyWL8bDvP3H7TXAqk/UEV97qrOusiZDfXm2j5/a36B5 j7NGqmD6iIoma59BnQpiNvZg+kKSVqN+q2x1VS9wLLh9PyTGLXWJ58WDoIUjKUqniYWV fToTCutcKvW8MMf/DM+mgdx7ydbmdnxK4DiJqZJ97zATa2i9qWfq0AAmzt/ByhdVuZKE JE83tXPqgAigEWuVb+h5CNt3DiMFIGB8mP9ipP5nA0mNfuqc6PhDce3OZsThKEm5mDkA ++fNPsCY/DJzVg8N4CJNY4XFGKdxY+e0gGRrTABhUfaMT+t+0ql3vM5iCOu6K6xFiQu8 1G2g== 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=kbNKepokClBC+Fd8kc0clG847l0ryo303tvA4pxU038=; b=Q7wKN3I+qJjkttVfOHdk768JNPsc2qfDIDg/PZCrLWuWHyzCzGZlo52qsXAP+8IS7S 6qQ6a3yju+ntBUrSrUkVTv+lxLPSiPigx+J6C00zguAGGqNXRmVPO7kfEmboOBTxaVP4 qpoaRkE71Y+tL9/66gBwzX7MxnmfwfRZn2G3Aqb5Kcr8l2urmVSWS39aVopWQLdbhWfW NgKjZ2L6AdIe/U8mCJjM4KsVCjDKI6oTn4SW0ky0FuM5aaLa3aHaYyEUL1bT4OSNJDsg xoHnhl75Uc9E2XtCihg3/D3mY7JmOtMul6BjnA5xd3XjXhhWcbQBcsumf1yqB+ieSd0Y Vx3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZXqT+niD; 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 b16-20020a1709063f9000b0078d44c5da0esi24560881ejj.667.2022.10.24.06.36.09; Mon, 24 Oct 2022 06:36:35 -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=ZXqT+niD; 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 S232339AbiJXNbj (ORCPT + 99 others); Mon, 24 Oct 2022 09:31:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231627AbiJXN2e (ORCPT ); Mon, 24 Oct 2022 09:28:34 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D7FBABD6B; Mon, 24 Oct 2022 05:32:20 -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 DDAE56128D; Mon, 24 Oct 2022 12:28:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F184BC433C1; Mon, 24 Oct 2022 12:28:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666614531; bh=/hfU9Hs/EoqRC2bMqwxFdnQrXTEESji2BHKsq/LzPyQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZXqT+niDogm6V3WZfT9ZoCnpSNOjr6ZY4CibqziVrUcw4exQk42enaS06/oE6CSeA r5Pe56YdS7Ao8W8vsQp3DOLGwB0lsh97cxWBdZjlJYWdIZq2LyaPe4hnle3bEauuIh qeqCA03KBe9GwQFScB1vNIUlfYmBL2A6SqsT/PoM= 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.10 297/390] ACPI: video: Add Toshiba Satellite/Portege Z830 quirk Date: Mon, 24 Oct 2022 13:31:34 +0200 Message-Id: <20221024113035.662313201@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024113022.510008560@linuxfoundation.org> References: <20221024113022.510008560@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?1747576260315926574?= X-GMAIL-MSGID: =?utf-8?q?1747576260315926574?= 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 eb04b2f828ee..cf6c9ffe04a2 100644 --- a/drivers/acpi/acpi_video.c +++ b/drivers/acpi/acpi_video.c @@ -498,6 +498,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.