summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2022-02-24 12:49:48 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2022-02-24 12:49:48 +0000
commit90a9809990e4fba204981e932bacbcb3104dfcfa (patch)
tree2176d33a96f73bd060aa48163a6c47b7d9a2e742 /sys
parent429a748e46f657c6fcac1ed8f9371a6e934d79a8 (diff)
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
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/drm/radeon/atombios_encoders.c3
1 files changed, 2 insertions, 1 deletions
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)