Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2926254rwb; Mon, 15 Aug 2022 14:11:24 -0700 (PDT) X-Google-Smtp-Source: AA6agR6+tHRcS6PazPkt+qkQ8jWC0VNsKu+GpZcWmiubr2AYf5PmPvjSRvMDUvB2g30v65gJZF71 X-Received: by 2002:aa7:d8c6:0:b0:43d:b0a1:5266 with SMTP id k6-20020aa7d8c6000000b0043db0a15266mr15757513eds.164.1660597884401; Mon, 15 Aug 2022 14:11:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660597884; cv=none; d=google.com; s=arc-20160816; b=ooPHcKKZknA68e/GZgIqMOCG/OPgUHqZPHAZ/emxPysMEHOrqEGqSJ46RzAjoCYpqx 9/qzWj4exKQsVsvnDRTX+IoBl+rAymo4zA0NLvBVMEwwqC5LpbretlTz3FBcpl06necq nZYb3EOVjksnzYJYBXwqu6d3tjGzSxBYlLK4crBdGZr6e7QTLPGvzTRg/tPsqbPI1Ec5 4rjh7iowU4bOUrm4Q6CY5DVHh4pnR2UYiquTsk8IaeJ+0SJhjLlNxtr8wIPQ0bK4RQWN 6Wm6rMSCfZjXe/JTpxVrwRDwRsQT/TBVzYvxTtfEHPon+8IGrU3rccJ/Pc8h1WNeMuln NFkg== 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=sNWf2f9gDMKRpU1P9WapJNHTs8PCdMXnOSE/Q9TAy+g=; b=GcM811TmVC0+IgPAntPP/+tvVcDyinC2gNx1M1Npc8SKVpGcDuU2PoiItryEWLsk2Z nJjcWEwqTHLzdpXyC7dEYCvT6nWDRv/wet+By/y5xMDv3kKuVKmEJr9kyVNuW//sZScb SjwhmxUgcs9iVKMX+QcTJqsA8hAMcAoUWyqIP3+OcfWMBs+1yS50ZYQVnK6dmA3BbJWt VNIQH1APKHsdXHOpRuwnTv3VSoPV9ISjofHH1QLdmzkT5HL/iQoD0eTxIKukjMz2YgIS AUdHIyvhet9CyNRt4A/Eo9M+wIWDLiY2Fg6ssv56cv47pRK8Soaj+9eryqu1/HyIwPli loWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wvX2H23Z; 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 z10-20020a17090655ca00b00730ab71fb4esi7781822ejp.561.2022.08.15.14.10.59; Mon, 15 Aug 2022 14:11:24 -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=wvX2H23Z; 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 S1347716AbiHOUbg (ORCPT + 99 others); Mon, 15 Aug 2022 16:31:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347299AbiHOUYD (ORCPT ); Mon, 15 Aug 2022 16:24:03 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B1894BD13; Mon, 15 Aug 2022 12:02:53 -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 17400B81106; Mon, 15 Aug 2022 19:02:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 731C1C433D6; Mon, 15 Aug 2022 19:02:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660590170; bh=oF4xWoSbIFPJ8tM34EAHPqzQikSWy54TF/PD7GuhNQU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wvX2H23ZZTxMcm1eUSvDe8uovMMiCRiEazwRJfhCPjV3DXZJEib9LKsPwVnyf3wB/ yU8qYWmQan26AylFEvdw2O16LsiyFCM5z/qwQESJcDOTIJCqglse3P60O7N5P6/1vy TtGxw0TdCoZtjJUIr5IALxae8QZ88qWWgpQ+FQMQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans de Goede , "Rafael J. Wysocki" , Sasha Levin , Ben Greening Subject: [PATCH 5.18 0175/1095] ACPI: video: Use native backlight on Dell Inspiron N4010 Date: Mon, 15 Aug 2022 19:52:54 +0200 Message-Id: <20220815180436.875092102@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@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.1 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,T_SCC_BODY_TEXT_LINE 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: Hans de Goede [ Upstream commit 03c440a26cba6cfa540d65924e9db86fcea362b2 ] The Dell Inspiron N4010 does not have ACPI backlight control, so acpi_video_get_backlight_type()'s heuristics return vendor as the type to use. But the vendor interface is broken, where as the native (intel_backlight) works well, add a quirk to use native. Link: https://lore.kernel.org/regressions/CALF=6jEe5G8+r1Wo0vvz4GjNQQhdkLT5p8uCHn6ZXhg4nsOWow@mail.gmail.com/ Reported-and-tested-by: Ben Greening Signed-off-by: Hans de Goede Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- drivers/acpi/video_detect.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/acpi/video_detect.c b/drivers/acpi/video_detect.c index 6615f59ab7fd..5d7f38016a24 100644 --- a/drivers/acpi/video_detect.c +++ b/drivers/acpi/video_detect.c @@ -347,6 +347,14 @@ static const struct dmi_system_id video_detect_dmi_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro12,1"), }, }, + { + .callback = video_detect_force_native, + /* Dell Inspiron N4010 */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), + DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron N4010"), + }, + }, { .callback = video_detect_force_native, /* Dell Vostro V131 */ -- 2.35.1