Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp4262929rwb; Sun, 7 Aug 2022 19:43:16 -0700 (PDT) X-Google-Smtp-Source: AA6agR6EvgQLo5lelRL6s+YX/nNhuhpO+MqFmMYJXBBQD4JZ4qnyJ1wZLpk/8+X9+c1gFEhVLsDL X-Received: by 2002:a17:906:cc17:b0:731:1b37:3d09 with SMTP id ml23-20020a170906cc1700b007311b373d09mr6634559ejb.723.1659926596621; Sun, 07 Aug 2022 19:43:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659926596; cv=none; d=google.com; s=arc-20160816; b=o2L6yeVehTOhRXSgmBcQTVP4hyYSQWgQ8Z7SdGnVntLI9AXB9ytesgJqOWY7CD7MfT mR3jN+lDO9zOCwI70g8YvJQmvq4/PjzFnCpwfqaXRbNwoynW73RCj6Bvblc1ak8juEvk Gypl0OmOGWHIAGiAhewfA0RgUP4K5JWK0CYkG5fcqW4ItPxVS6vBjo2TIp+SBFrbAEYO wkaSPQPlhJt/8B64e6CXTiwWFJVKxX3hLEh+CNqg6AVX53gnCdUGGDAzfwt3uDwJtTl1 fkl5qWuSDvlKnCTxR8ZpIHlxLTi77/9hbsSKDiG1INPVMziSB7DVGFoskA53GBdIvV3f TYeQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Ab0f9Si10/cOmMUsvnBYZ+LclivYl8cVS8WtaNyr2YU=; b=wny5lkhqIPHmreBP4HwMV1LgMt1seHtGigisfID2D8I/UJiy1baV6LkXo71SK7JvBz xdJ4U5dxzwdzL5Z1b0VyFOAD8yDbieCkYk0Wy7BixMslDM+94GQdXIqvEbiEALX79IpE v3RvFw3zYqLRr+ZEoBbAKWoDaTYHziVEVgszOzfowgXfJeTf7+Q+zPDDQ79PQPi0fkeJ ZZbJZeXmlZW49X6gb3ymjylmQFs/3e7S6sDVODwTVjtqnzaDufSlojOxBrMQKRyJ1Lx0 KZJDLrRS1iHXjntzMcc2122ZntxM+1b2ruac0RvBJXI4vJW/1h95WIaQym+ltt3EfaWV 0k7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VlwaDPBR; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa33-20020a1709076d2100b00730a5a456e9si6007356ejc.758.2022.08.07.19.42.51; Sun, 07 Aug 2022 19:43:16 -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=@kernel.org header.s=k20201202 header.b=VlwaDPBR; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242531AbiHHBhr (ORCPT + 99 others); Sun, 7 Aug 2022 21:37:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242082AbiHHBga (ORCPT ); Sun, 7 Aug 2022 21:36:30 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7B53BC1C; Sun, 7 Aug 2022 18:33:29 -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 4D3D860DDB; Mon, 8 Aug 2022 01:33:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA6DAC43141; Mon, 8 Aug 2022 01:33:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659922408; bh=iHZDPs2qdzAjoXp+XZNtkRFmBzqwWwQK3l4MS4ZX2Ho=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VlwaDPBRVwF194bTbhCfiyFv6im9busPUadSbG+3BbWNKjSQTtaco7OZaS4KziBNT wCvVoiDf2T1Vlbpl12d8Ze2q6TJ3M5yFlMY7vpdBd2Z3GZAOabeL1C9sPn/oP/fGVd llIF9OJZ3YDMDOdfplSBt7nVUQkoeJrDwN0JwiIG6425yiQK8XTu71ORckiFtfuXvr pmuezQF2jNL+kQkQrefEB7GhYvmtdgD72pHAL1ie9/JG0engcbFNvBFBkfMUuLrvMH GQpEOsM9s3mE2eCTeIon6yaeFUYgIURdj8sV+iT3A7iM596U+adklTpxJXuEdrwfRX CbXYO8HKExb/Q== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Hans de Goede , Ben Greening , "Rafael J . Wysocki" , Sasha Levin , rafael@kernel.org, linux-acpi@vger.kernel.org Subject: [PATCH AUTOSEL 5.19 50/58] ACPI: video: Use native backlight on Dell Inspiron N4010 Date: Sun, 7 Aug 2022 21:31:08 -0400 Message-Id: <20220808013118.313965-50-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220808013118.313965-1-sashal@kernel.org> References: <20220808013118.313965-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 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 becc198e4c22..4099140bbd5f 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