Skip to content

Commit 7a26f9a

Browse files
nathanhialexdeucher
authored andcommitted
drm/radeon: enable native backlight control on old macs
Commit b7bc596 ("drm/radeon: disable native backlight control on pre-r6xx asics (v2)") accidently broke backlight control on old mac laptops that use the on-GPU backlight controller. Signed-off-by: Nathan-J. Hirschauer <nathanhi@deepserve.info> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
1 parent 5b49afd commit 7a26f9a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎drivers/gpu/drm/radeon/radeon_encoders.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,12 @@ static void radeon_encoder_add_backlight(struct radeon_encoder *radeon_encoder,
179179
(rdev->pdev->subsystem_vendor == 0x1734) &&
180180
(rdev->pdev->subsystem_device == 0x1107))
181181
use_bl = false;
182+
/* Older PPC macs use on-GPU backlight controller */
183+
#ifndef CONFIG_PPC_PMAC
182184
/* disable native backlight control on older asics */
183185
else if (rdev->family < CHIP_R600)
184186
use_bl = false;
187+
#endif
185188
else
186189
use_bl = true;
187190
}

0 commit comments

Comments
 (0)