Commit 7a26f9ad authored by Nathan-J. Hirschauer's avatar Nathan-J. Hirschauer Committed by Alex Deucher

drm/radeon: enable native backlight control on old macs

Commit b7bc596e ("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: default avatarNathan-J. Hirschauer <nathanhi@deepserve.info>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
parent 5b49afd6
...@@ -179,9 +179,12 @@ static void radeon_encoder_add_backlight(struct radeon_encoder *radeon_encoder, ...@@ -179,9 +179,12 @@ static void radeon_encoder_add_backlight(struct radeon_encoder *radeon_encoder,
(rdev->pdev->subsystem_vendor == 0x1734) && (rdev->pdev->subsystem_vendor == 0x1734) &&
(rdev->pdev->subsystem_device == 0x1107)) (rdev->pdev->subsystem_device == 0x1107))
use_bl = false; use_bl = false;
/* Older PPC macs use on-GPU backlight controller */
#ifndef CONFIG_PPC_PMAC
/* disable native backlight control on older asics */ /* disable native backlight control on older asics */
else if (rdev->family < CHIP_R600) else if (rdev->family < CHIP_R600)
use_bl = false; use_bl = false;
#endif
else else
use_bl = true; use_bl = true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment