Received: by 2002:ac8:3b51:0:b0:3f3:9eb6:4eb6 with SMTP id r17csp11486189qtf; Sun, 2 Jul 2023 13:14:56 -0700 (PDT) X-Google-Smtp-Source: APBJJlH0GPeYhYEV0qO2ZcuU8CpKN907Um3Nvn9zYdb+mGP3riRQPWdMpAlSlPQ9V5ZzWTx+bVlD X-Received: by 2002:a05:6a00:2d12:b0:682:4ef7:9b0b with SMTP id fa18-20020a056a002d1200b006824ef79b0bmr12161796pfb.0.1688328895985; Sun, 02 Jul 2023 13:14:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688328895; cv=none; d=google.com; s=arc-20160816; b=D03RhO1NZf/PHviG4Bdu3UFJ0Uyfw1+oot623NP1XFi/8vg7tfCufhktEJYTP3rS4w K4x93KbfuFeavtpDxO0Hp2eElZJz6ImQAzNzI8lgpiDxCJCqXK3PsWG4HxgxEWhUj0Tp 3UV/ltvh2jqx+9EOS8UyhVZq9Lt7bcW9Gk+roHE+ZkaRJ7mES79RkIglRJH+IX647zk0 yPTD1gp5rHd3PL2LYhp0riFKNMT61Rx9Oz9lEtLDtDazMPVXS1rAD0YoPi/29Gnh+Hvb FuMMxoSKaSERUAcai1NN7XRO8iSU6zDJpXEz9O+Munr4cyQV8EAN5IEy4xcKgK/Pz0Oq Vxjg== 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=+PR1FjBN+Ts5K8Hv3XIlfAxexo39eC+hJ7ZNZtdl0p8=; fh=5nQgtDD2IcpIaJbR7c3IbYxTd+bcXwDpmnkQfGQ6RgQ=; b=wO4XXPEhUm7+W7l1bhgckY2oiFq2Gc+b5lDQEPVgVoBxj8MoFGsNtGsMpbQ0bb7IIm xTJkzUhaFq/BENur///my8ujITRvAJ6rWZ+XHbLF460xdsbFZsSLE4WI8ZU45FK1wZxe KpxgjPwQHu2/DGAYpn04ooC9oexdKnU6c9SXtLknHQ3Y/lssUqyy8BSJlzy7XCqCtyD7 f53cpIvkExF1cEEUvGWarj6TlA/HN734m2XwGrwf1vmiMH+8kfrnaVkv/boJA0HBhQOl WLUoqhwSp05mSl+4wFSB4UNe9ha8G1hg52m63jXUxQiIA+ckFQAPfaBVGCXzM7bDBEul 1Z8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uigZeEX0; 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 g37-20020a635665000000b00553ced07d1bsi16118563pgm.36.2023.07.02.13.14.43; Sun, 02 Jul 2023 13:14:55 -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=uigZeEX0; 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 S233238AbjGBUEH (ORCPT + 99 others); Sun, 2 Jul 2023 16:04:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233832AbjGBUDw (ORCPT ); Sun, 2 Jul 2023 16:03:52 -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 857DC1985; Sun, 2 Jul 2023 13:00:47 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8FD9E60C8D; Sun, 2 Jul 2023 19:51:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44BFEC433C8; Sun, 2 Jul 2023 19:51:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688327469; bh=mAz3AHas66G18RPzS7JDee5JtFE3Vomik05GIdaTHOU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uigZeEX0dRFT3Q0K6T77f0qIfIQw0eSTTPZzHKyem/XfLCockQNiCyxubu9iVXA1B oNfldy5TPNMB1WnhU9/hwQXyvvjDX0zcOIqZe6KVEFSgh5TLNncrgcSqyXWFd2lVNK +mfJzUf44HqAU3VVpUzdNFkrb8iDTCCr2lCYfH1eOBIX3zP/V6A6XeXAqEQy9jOhye 9MY3IogrfHZYM11UpCs5cdXGfSLA7R53LR71tVGTxR1KoXZNGPn9wCif6O86YhErDB U06yuJN/WDsdIGp13gCz9HepMPrtC7/uo9ud+N7toLYokvijMkClUmNccR2gx6Xt5X AzGxbCp0dmIiw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Hans de Goede , "Rafael J . Wysocki" , Sasha Levin , rafael@kernel.org, linux-acpi@vger.kernel.org Subject: [PATCH AUTOSEL 6.4 05/12] ACPI: video: Add backlight=native DMI quirk for Apple iMac11,3 Date: Sun, 2 Jul 2023 15:50:50 -0400 Message-Id: <20230702195057.1787686-5-sashal@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230702195057.1787686-1-sashal@kernel.org> References: <20230702195057.1787686-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.4.1 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 48436f2e9834b46b47b038b605c8142a1c07bc85 ] Linux defaults to picking the non-working ACPI video backlight interface on the Apple iMac11,3 . Add a DMI quirk to pick the working native radeon_bl0 interface instead. 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 bcc25d457581d..61586caebb01b 100644 --- a/drivers/acpi/video_detect.c +++ b/drivers/acpi/video_detect.c @@ -470,6 +470,14 @@ static const struct dmi_system_id video_detect_dmi_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "82BK"), }, }, + { + .callback = video_detect_force_native, + /* Apple iMac11,3 */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."), + DMI_MATCH(DMI_PRODUCT_NAME, "iMac11,3"), + }, + }, { /* https://bugzilla.redhat.com/show_bug.cgi?id=1217249 */ .callback = video_detect_force_native, -- 2.39.2