Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp874273rwi; Wed, 19 Oct 2022 04:10:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6eQOjF0bX6R/c3DqM7eessc0PW+oK65qOJGas2E0BB4zxC4aisFFZfJnN2O+19bJF9/FOQ X-Received: by 2002:a17:907:b11:b0:78d:e71a:6e6 with SMTP id h17-20020a1709070b1100b0078de71a06e6mr6296058ejl.14.1666177828283; Wed, 19 Oct 2022 04:10:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666177828; cv=none; d=google.com; s=arc-20160816; b=uh6AACY4gEQ+/djywa7ovJ9Jm0IxZQ4zoFUJNKWzhRSdVsoKB9HOm/50C2SjB+p9+s RgHDzj89vcUFAGES89ukYI8vHCm1/8ON9iaojmETorBW2rlpjMAUATcxtUPiVbPW5L4L HLQzMVWX65YoxE66tSDt1Asug3L3ZXhcMmR+MIaxgpIpoZ/lsWUKEnrTsAOn9gzmGxyL VFYS7pPlnMOWjyj9eYzT2Yg9ASamnP458RS25DPdIubrUYoYjazPzYOR/Eb7MTIzxkGU f7PK+Ox9pLQyyC9k7Iuldz04/y+oltIn6FDgCzZynypEMrkNUNjr8XsrxGj1oWKMFoiq WKHw== 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=8riVefyqXzxZ8hVXhHS1RDtXUPJxTdHsZ6uJ2Q6NjDU=; b=vlOMeq9HhXw8UnVCQqmncFqEJ5sIXIC8O1mpYhKJXa+RcDe+iTybI86H/AbMhab0XI ANl3e/umthF9V8dz28sPJ4A5VupryGhwbDWB/4t6uHZkNCVeRGmdr6Avz4oKIxQ7raH6 tG5WKIH+iF1O2mwFd6+1S5mAUGKLNy5CgQ1SURxx2IUHISWjemzS9MWldJuxWwve96bf 6iBZiXJ3y3K6dimgrAaSWBXVFTeeSC+d36lXLtb76Q6e/fn0+iCNBJhyuHjCEPFkzr8w UXYImEtcP9zECEXTU5XMtvL2DLfWOLffyxVh6ZVJC26ayYePBChWq3rsMxIS2Os20lN5 g5gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iu1mTpn+; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y4-20020a056402440400b0045c2174074asi17055911eda.350.2022.10.19.04.09.54; Wed, 19 Oct 2022 04:10:28 -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=iu1mTpn+; 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 S234737AbiJSK5F (ORCPT + 99 others); Wed, 19 Oct 2022 06:57:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234687AbiJSK4L (ORCPT ); Wed, 19 Oct 2022 06:56:11 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E77A127438; Wed, 19 Oct 2022 03:27:38 -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 173E6B82495; Wed, 19 Oct 2022 09:07:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B73CC433D7; Wed, 19 Oct 2022 09:07:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666170472; bh=0yH2tHsi0KT7BCp2zt5FOnIEX15voda8qCVI6xMl8fQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iu1mTpn+gVJ+T5HdbKqsh9BIL9aQaKMsmKHmhZBY37p3qKqvGhtQjlhEyew8Iri1S J0RlYGfi1NyNH6acnMI7nn/9fJpVMLtiURYM6NozL5hUkOiWXjJJAf6vBJVLTvmvzM TBREp/juT/2+47mVmx2GSEdt4vJDDVLgAEOvQF5M= 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 6.0 667/862] ACPI: video: Add Toshiba Satellite/Portege Z830 quirk Date: Wed, 19 Oct 2022 10:32:34 +0200 Message-Id: <20221019083319.430613846@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221019083249.951566199@linuxfoundation.org> References: <20221019083249.951566199@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.4 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 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 5cbe2196176d..2a4990733cf0 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. -- 2.35.1