From patchwork Mon Oct 24 11:31:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 8771 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp430493wru; Mon, 24 Oct 2022 05:41:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4XZqAM/HquS1HfSHOoiRmEJ2TMW+gdpq9V/xtO7RL4aX8zwR+8M1p4iwe8Xb1hhEQRFtXb X-Received: by 2002:a50:cc07:0:b0:453:4427:a918 with SMTP id m7-20020a50cc07000000b004534427a918mr30634980edi.121.1666615302778; Mon, 24 Oct 2022 05:41:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666615302; cv=none; d=google.com; s=arc-20160816; b=rYvOlxAiScQ5Kl/iDYtVM9e98U7Uyi00TnjYVR6lFv1T9rARIoZjpbmxQ5YYpZfm9b B2K/bN68Yj+hGESvNxUPJjMEmaiMRk83OWel76KNtRUJusS7Mt6sGh/7IKWKbgwmUTWK BTUTGioXPFZT9uDQ0HaNnVyA+aPSzVwUyEFgugpjjhOHPlc5UykIdDWigXz/iGa39NGX 3YGhVpOa0EtlUjR08frpHebJzrGooIHvPXu6x9/i646Etp0m5L0/4UoKvQWWM6ofx1TK HflXyt1FdOnby7db3owuena4Xc2j/KJfjSjOTVnFt+yVGE1XbYDMn0Gx0fGmXMlJFNy0 y24g== 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=O+WLTEDG3VIAUvJzzHMygjhoiISXZdDAy/vmRMNpwZA=; b=XSva+Gsb4YNt0EWejz/ltu72uc6kFI9abNyQCfsXecN2aEuPt7rmrQJyMbqu9xYjS2 b2+TV9aNR/5dJolFs8CJIiIqGFjFXH+cA0IWqIvF4Y5KZ14JMKt5V68755jU0BH/LNS1 wnIgmiRrfjx43IJ/3GYfEENlSWEZsljGnV8zi0tOqk1XupwOnznVbyYHiYql7qYso8cH OQ5k1mRopGDjVDGBwXm7gGaeIZhow2DMxcffdXWRWWWIF5Jos8sZFaAe+oerJa9HefiY 3y+qrTg1LhJdW8BSwYFCGBW8MjnsSJwyL8B+++RZZRCm60limbp9VhGZ1m4pWpoeF4A2 Jkrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QpsjF7SR; 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 qb26-20020a1709077e9a00b0078db3762061si29424938ejc.439.2022.10.24.05.41.18; Mon, 24 Oct 2022 05:41:42 -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=QpsjF7SR; 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 S232197AbiJXMbH (ORCPT + 99 others); Mon, 24 Oct 2022 08:31:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233881AbiJXM2e (ORCPT ); Mon, 24 Oct 2022 08:28:34 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D39A87098; Mon, 24 Oct 2022 05:02:27 -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 1E64E612FC; Mon, 24 Oct 2022 12:02:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D4B2C433D7; Mon, 24 Oct 2022 12:02:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666612922; bh=XHcyysHE7tX7QDs1ULU7fgwf6UOTOZ2Xr0MsncCmixE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QpsjF7SRWqjDPVdznNEagbLctOjGlYQIZX0BE8ay4KKFI0ogqtDV+qN1qmhSOZyNZ e2x767TqRh2jYrassNe+I/DfmtFs4rkeUHl6ljJwo0FIbmz10EfgogMZY63CYfi+mU ExYblOOzy6BCwgILf+xQbHqvSNZ6xHGv/79jEk7k= 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.19 170/229] ACPI: video: Add Toshiba Satellite/Portege Z830 quirk Date: Mon, 24 Oct 2022 13:31:29 +0200 Message-Id: <20221024113004.584483642@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024112959.085534368@linuxfoundation.org> References: <20221024112959.085534368@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?1747572807766548642?= X-GMAIL-MSGID: =?utf-8?q?1747572807766548642?= 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 ac54fc03cf81..eb7fca6f9444 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.