From patchwork Mon Oct 24 11:31:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 8479 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp403403wru; Mon, 24 Oct 2022 04:52:06 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5C5ixqMjrcHuh0iwBlxobXOSWYvSziRhc66AbfOD4+PA9cQBXjEbzKDEBMzTtU/vo0e4Pn X-Received: by 2002:a17:90b:4a43:b0:212:fd76:be5d with SMTP id lb3-20020a17090b4a4300b00212fd76be5dmr8778629pjb.152.1666612325905; Mon, 24 Oct 2022 04:52:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666612325; cv=none; d=google.com; s=arc-20160816; b=J+5Osl+fCxi9gFQWAPg/VT6ZNOB4kS5C+l/t2xJRSkeoCtXuyfRaoskrL8CaduRSzx rpPn6cgiv7TiIsLDi5RbuXIVx1z5FEJ202Npy1MTDK6atwtBzwRHtHu8uCFfsqO7RQF3 JVs4khxnT4Lqske1mTlXvnXRXz1H+9qgFS5dyRpy5m5k8OknPUpbpUguv6uMxTCoQUZA ccn8NY4UoOfa6Ehztx6Tak7n95p7TBzTfWwlJiNHWlFLpJF6hSQuqArZW52p8jWWhL/6 92S+YrT1MXjiZEmass6XO4qrwlnBijWdmhWaONrT27rUPL6ZEBNTdLLETRK+kOgMvGnx cWPw== 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=uDkOEeouvPFiUxdb6xLY9Pj5MKjrktk4PLkqK3GBm2k=; b=Vei1uo2eXYiITikyT4C1njRVlhWbKqBRrJ7D+JZ5dwomKLCt1OQZ0+PzZ4DXBT3LZS XeN6OBn0LQ4gdgE7IZCdQhutgxraAnZh7wYw8XpIf+omXBySPZDHvh0zpAT82ujPwz7v SxijtUHNXWjagNXE+VsZh1sfrO9F8d2TFN8UreP/M7Na/yJUqD173ClweixwnprLwVgT Ox8p5pL8eCdz/773HJ4kXOBnpFU4lEENJjEUQk65spqlV2osaoFXdGk7J12vWUBVZrtJ wcCRe/GEaB9fFG+jxqwQ7+2qHf87bMJS63/nhtQwoOdQXxQVS9eTA1TAdCgCAZEeJZab nQAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mLIQHt9K; 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 x33-20020a056a0018a100b00536f8a6acadsi39817871pfh.2.2022.10.24.04.51.52; Mon, 24 Oct 2022 04:52:05 -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=mLIQHt9K; 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 S231478AbiJXLvj (ORCPT + 99 others); Mon, 24 Oct 2022 07:51:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231836AbiJXLtE (ORCPT ); Mon, 24 Oct 2022 07:49:04 -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 DA25E4C61E; Mon, 24 Oct 2022 04:43: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 dfw.source.kernel.org (Postfix) with ESMTPS id 94B2961297; Mon, 24 Oct 2022 11:43:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7A48C433C1; Mon, 24 Oct 2022 11:43:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666611818; bh=nMsxlgLRGEX0FtD0r/V/YW2d/mRCby5PdiPhCodz1Z4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mLIQHt9KZRLyIUsGg4b4oe2jQlWz4kAZ3rkpSEYACBNTAv29xZ7iNSldI5cuLqa+H DecT4MbdH14zZaWFx2Ilixo66AS7lyqQ7N+oxVzlJKRQXD9g9x+O+gLxr8zSLSfDnz RqxY37z8pM2+3F8ejrDlj2MvGbkgb1R4laTS9WPY= 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.9 123/159] ACPI: video: Add Toshiba Satellite/Portege Z830 quirk Date: Mon, 24 Oct 2022 13:31:17 +0200 Message-Id: <20221024112953.990430064@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024112949.358278806@linuxfoundation.org> References: <20221024112949.358278806@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?1747569686539296418?= X-GMAIL-MSGID: =?utf-8?q?1747569686539296418?= 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 ea0573176894..209903c2ee85 100644 --- a/drivers/acpi/acpi_video.c +++ b/drivers/acpi/acpi_video.c @@ -485,6 +485,22 @@ static 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.