Skip to content

Commit 364438f

Browse files
nicholasbishopalexdeucher
authored andcommitted
drm/radeon: Fix backlight control on iMac 12,1
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 <nicholasbishop@google.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
1 parent 9c4f59e commit 364438f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/gpu/drm/radeon/atombios_encoders.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,8 @@ void radeon_atom_backlight_init(struct radeon_encoder *radeon_encoder,
198198
* so don't register a backlight device
199199
*/
200200
if ((rdev->pdev->subsystem_vendor == PCI_VENDOR_ID_APPLE) &&
201-
(rdev->pdev->device == 0x6741))
201+
(rdev->pdev->device == 0x6741) &&
202+
!dmi_match(DMI_PRODUCT_NAME, "iMac12,1"))
202203
return;
203204

204205
if (!radeon_encoder->enc_priv)

0 commit comments

Comments
 (0)