From 139b874dceb21d9d899e52e0eab865fd09ad2493 Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 24 Feb 2022 12:49:47 +0000 Subject: [PATCH] drm/radeon: Fix backlight control on iMac 12,1 From Nicholas Bishop 68f3a4252e9718843bd172f9761267aa288647d0 in linux 5.15.y/5.15.25 364438fd629f7611a84c8e6d7de91659300f1502 in mainline linux --- sys/dev/pci/drm/radeon/atombios_encoders.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/pci/drm/radeon/atombios_encoders.c b/sys/dev/pci/drm/radeon/atombios_encoders.c index 0fce73b9a64..70bd84b7ef2 100644 --- a/sys/dev/pci/drm/radeon/atombios_encoders.c +++ b/sys/dev/pci/drm/radeon/atombios_encoders.c @@ -198,7 +198,8 @@ void radeon_atom_backlight_init(struct radeon_encoder *radeon_encoder, * 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) -- 2.20.1