Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3024751rwb; Mon, 15 Aug 2022 16:22:46 -0700 (PDT) X-Google-Smtp-Source: AA6agR7KVbcZEBM2lecWJFU1utNOJ9RR6kPegrN1JbJKW9qKvGQUdw5Vyi3aicc73AyXW1obCasJ X-Received: by 2002:a65:5688:0:b0:3c2:1015:988e with SMTP id v8-20020a655688000000b003c21015988emr15537668pgs.280.1660605766137; Mon, 15 Aug 2022 16:22:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605766; cv=none; d=google.com; s=arc-20160816; b=yhVkuYxUzO7zpoMJWL4xTzUpMDApGLybdf1EMmgciN2dmWsF2GRgFPkiXPFHHkmHGs IpFF39XoJ46wZkIcV+0Mx260HnpkNWxfVTwjKJnc6UMpR+608GzTTDJIoq9PcQEhBjGS LvSsKpcfD8DQS9S0qWo8E1gE6wCqWInAckrJU8PBva1q8A/gbQUdkSJ+SfjFVOQjigCE XPEn6JbxIHtnARCcTvbdv30olTIgSsPMbjmwUl6XUp1PolwbcB5/hEg5BJ+URPXjq/rM h7sRMvvD+9LsqBHnsXDkDK/iLbBxhph2+LYpIXgtl7UWHfWu49T0NMI8jIHQn8vM162f Kucw== 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=P7QLWgJr7A7l7WEfGv0dnEYZcNznZhtFvl/rZuaywQKPLNbBcvjqllZdwxzRn5Jqnv VRmQwWZyY32b1KYQNuWHssP+TorfnzY61uC6El5whs7H8av0XDpVkWZqN69zHaPJytvx 5QoiAcjBoNqS3euabWLBY8xYFIb/Xb0CLTdUu8XgtYib4AQF8kUjU+AA5l3wNd0mkXsR r2Ng+3wxgtjlEyhWDNn+FA2rFr3eaLhByLBdzosYMSsnbKi6DOvrsMgk8U1Opo5UdQ5B bQvXm+qbUFlwS/8lnNPOqw/Jx3B2eaFazLbvK/CSq1f0dkRX9gB2NAJ49eGsRKxc89Lo ZAOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hhbzdzLw; 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 y18-20020a626412000000b005289521cdccsi11026435pfb.60.2022.08.15.16.22.35; Mon, 15 Aug 2022 16:22:46 -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=hhbzdzLw; 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 S1349986AbiHOWiv (ORCPT + 99 others); Mon, 15 Aug 2022 18:38:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348784AbiHOWcS (ORCPT ); Mon, 15 Aug 2022 18:32:18 -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 9BAE212E24D; Mon, 15 Aug 2022 12:49:08 -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 459FF61231; Mon, 15 Aug 2022 19:49:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 30652C433D6; Mon, 15 Aug 2022 19:49:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660592942; bh=oF4xWoSbIFPJ8tM34EAHPqzQikSWy54TF/PD7GuhNQU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hhbzdzLw5h/poR914wgW+bd0hcJPDTm5ISIUL4/EGqdgXH8P2hN3Cvi+XCXrVmA1I CwdNcDMGRcn/6wOM2dHiaxZHWIJhBZI5XcN2u7BSibWd6X+TICH2PtAPoCY0ZEA1W2 gBYps6p7nA6+89cjMR3rN4FT28d2Ub0imlYNIhKQ= 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.19 0190/1157] ACPI: video: Use native backlight on Dell Inspiron N4010 Date: Mon, 15 Aug 2022 19:52:26 +0200 Message-Id: <20220815180447.351486607@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@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