Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4036915pxb; Mon, 21 Feb 2022 10:37:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJzY0deUVcJ+da/LpCh4RGOTJzrLeNBUcryUl4YiDguLE8JJ7mXhP09QrTWQNWOLljES1c4v X-Received: by 2002:a05:6402:34c2:b0:40f:f72e:ef4e with SMTP id w2-20020a05640234c200b0040ff72eef4emr22700203edc.147.1645468658353; Mon, 21 Feb 2022 10:37:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645468658; cv=none; d=google.com; s=arc-20160816; b=PVobHB/SphIu4iEEnsu9sQJl86qfiHO1Eo1f2xzN0ohrJeNhit/fYV+BrzIqHUEwVp UhKgLEBYP/OKopcZAPJp2Tq9KtTlB/btZM+X/ZvpHgHUFFAXWPZfOuaOhL3aVMbbfKGa suL0RZLbO4IlQvv3Tr9Y6BEp199zrW+IaLTWLJtYCsnslY5DUCPJt1Z9C7gYuk7VIxUp P8TsCXo5uxvUCKKzQoShCtRql7usgsdy58dkzae6x3Q+azLngzn2cec4lwrVVcTbSrSI BjOZOwsYfW1+V+oFhrGhmxvd5D3qTEZZPM/+BShTCWSmS2a02ucM5N+GVrgag7BhGxny 4Jxw== 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=a56AuzhTzdWPFkb7d3ZcNgYwhNEbspEaSjZPkUEzouA=; b=kSvk+QEn5SBGgvrX+RaNwjj+tiZd5XbCZfPW/BBNOxreZRfDAb6OB7oAawvfhEiz2w gP1FnufdfRz3LVTKJ9oni/vMsfkIX4FpqQiGvEHPJo+7y2mrRNE4XyOhag798iy25s23 uX4GLaiyLkQbiHqwR/c9IBdBr6ftEQZ2vUqjvvrD+x9gFFy4qydTjftHkuJ5gLwx66n2 sKJ1HnGa939Vu8WUTpw3A1ng9qxkWh5ljY8l036PhjycT+HUu59TiGdchNMeTSB6MKnE A58BXbyKCqMRoj9gtBct0VuH8DWwtFRyj+XiBnh+F9syy6CHPTKqvyN8oEp5j2XmVwuz vQdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="kKhD/VJ0"; 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 u2si8565838ejo.523.2022.02.21.10.37.16; Mon, 21 Feb 2022 10:37:38 -0800 (PST) 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="kKhD/VJ0"; 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 S1347355AbiBUJJC (ORCPT + 99 others); Mon, 21 Feb 2022 04:09:02 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:41918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347124AbiBUJEl (ORCPT ); Mon, 21 Feb 2022 04:04:41 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF2F925C58; Mon, 21 Feb 2022 00:58:46 -0800 (PST) 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 1664CB80EB6; Mon, 21 Feb 2022 08:58:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47210C340E9; Mon, 21 Feb 2022 08:58:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1645433912; bh=CMmA/IivKrWnzV7tqHqyjVNnVmgLacPECP9NWZX5YPM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kKhD/VJ0XVqKN7TEcoX8HkrYItD/U1idw1iBpEyMlGiTwnNKcQhBEX4WVbacnWy8A InXp6AqJs74DZRY6pcywlaFgKK5FFBQz0eD4K1yENhi5WhPrVx38Q/4Uz0/d2FLEm9 0jHUSHN+Vl9yJC6cE1Y6XTzNSy5OqTrY2bCGYGWc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nicholas Bishop , Alex Deucher Subject: [PATCH 5.4 28/80] drm/radeon: Fix backlight control on iMac 12,1 Date: Mon, 21 Feb 2022 09:49:08 +0100 Message-Id: <20220221084916.504044802@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220221084915.554151737@linuxfoundation.org> References: <20220221084915.554151737@linuxfoundation.org> User-Agent: quilt/0.66 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: Nicholas Bishop commit 364438fd629f7611a84c8e6d7de91659300f1502 upstream. The iMac 12,1 does not use the gmux driver for backlight, so the radeon backlight device is needed to set the brightness. Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1838 Signed-off-by: Nicholas Bishop Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/radeon/atombios_encoders.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/gpu/drm/radeon/atombios_encoders.c +++ b/drivers/gpu/drm/radeon/atombios_encoders.c @@ -197,7 +197,8 @@ void radeon_atom_backlight_init(struct r * so don't register a backlight device */ if ((rdev->pdev->subsystem_vendor == PCI_VENDOR_ID_APPLE) && - (rdev->pdev->device == 0x6741)) + (rdev->pdev->device == 0x6741) && + !dmi_match(DMI_PRODUCT_NAME, "iMac12,1")) return; if (!radeon_encoder->enc_priv)