Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp3828609pxb; Mon, 21 Feb 2022 06:32:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJzjLhyzMiQGGR8FTKGmKJCaogufDWG/wjw74RBFBg3e79OfVw4qHsm2/7uCg70vp1lYv4nE X-Received: by 2002:a17:90a:1dd:b0:1bc:235f:a0b7 with SMTP id 29-20020a17090a01dd00b001bc235fa0b7mr7683278pjd.40.1645453964942; Mon, 21 Feb 2022 06:32:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645453964; cv=none; d=google.com; s=arc-20160816; b=suxNNPwvd4OAwnNH/WplVwXLUFfy9GWX4XMriM1v7rIWCbzpBzMxFYUaX2c1kmurua 6lIDUSzu3AcpCMxKv/PkegIc652tS+y+MPRA19jdn+OXGhDJBeXdbsXBzKOJ5Ztj1dm8 tFcLCkQH9mHreOvCCwy8/OV9nNKJ1dKThzQrACat9FVmK4qpIUiUKzdgll/Hd/ycExCk iIw+jOtxzsxlh/yeiBdTm4CWY1L+3fwUmjC/rX0RQ/pEBp+4rpOXPwM6zHo4yT5UGic4 G88CF2ncZMtw+6fWuMElMIJCn/EC2mpr5Qhr+Oys7R2UAviAQew6GR6NGVLI3EMSJmhZ pXLQ== 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=abXWU2K/v37w0WajVWVHUlnqQuzVDpIx00dTjTWvpGI=; b=oYASvc0gk/O5tqUnrR3EFovZcCh5gLucEJSUaEreemrf421loCstU9Vy0tFWYXtNnt iCLUjJ7mPNzdNWUSEAAqe+pszVOAwaOCx3OAjaAwamdeV3ZO007jYTFHPr5J3QhcQ2tT +QO1YSWpH49FCJG9BIXFNmjg2mra1KNKIdqSXVZmGstoZhEs/hiJZ1uHMa3Mf7cd1hN7 J09jzBOL2+ONJ4XwsaiBraNUAa2TK1PVOcXrQyBITPHAJQWJ6f3ta5G09w5SqGDKt6cM wucd9HAsys85yyLRLzguGnKWKbLGXF7J8mOFvaAZx7SLs9MzsjM7MlWe2MKXdyYJ06rz pNlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=D4JU5to4; 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 g193si18707564pgc.397.2022.02.21.06.32.29; Mon, 21 Feb 2022 06:32:44 -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=D4JU5to4; 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 S1352629AbiBUJ4R (ORCPT + 99 others); Mon, 21 Feb 2022 04:56:17 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:42250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352928AbiBUJsC (ORCPT ); Mon, 21 Feb 2022 04:48:02 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BE42264; Mon, 21 Feb 2022 01:21:30 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 2B0DA60EDF; Mon, 21 Feb 2022 09:21:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3BBE2C340EC; Mon, 21 Feb 2022 09:21:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1645435289; bh=0l6VWU+fCpdLger+iD1JWTeW8k6VwwchU0sRqFBp3no=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=D4JU5to4MvLpoKdujMOXFclXFkjFmH38q0/HfLuEcJsCvZrnKDbZeZeUDPp82UjEK G2RE8SCfpEU6vZaqlsji25lCuaX2r+8ii02nzrR2A7AFSifibjtKH5/Jn/PQ8FNp/K YiaRH/EV//uv7wfubLIFwijaejM/Gx8cx82aw0sc= 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.16 079/227] drm/radeon: Fix backlight control on iMac 12,1 Date: Mon, 21 Feb 2022 09:48:18 +0100 Message-Id: <20220221084937.493672824@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220221084934.836145070@linuxfoundation.org> References: <20220221084934.836145070@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 @@ -198,7 +198,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)