]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Don't check registers, if using AUX BL control
authorSwapnil Patel <swapnil.patel@amd.com>
Thu, 17 Aug 2023 18:04:26 +0000 (14:04 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Oct 2023 12:56:53 +0000 (14:56 +0200)
commitb9971393d4c9be5eec3c6b30d9e312ba88c865ac
treeaf7b89cea9ef08677b2045070d2f71357d223268
parent49bdfc83c74a26d418734007eed187b01ba48aa2
drm/amd/display: Don't check registers, if using AUX BL control

[ Upstream commit f5b2c10b57615828b531bb0ae56bd6325a41167e ]

[Why]
Currently the driver looks DCN registers to access if BL is on or not.
This check is not valid if we are using AUX based brightness control.
This causes driver to not send out "backlight off" command during power off
sequence as it already thinks it is off.

[How]
Only check DCN registers if we aren't using AUX based brightness control.

Reviewed-by: Wenjing Liu <wenjing.liu@amd.com>
Acked-by: Stylon Wang <stylon.wang@amd.com>
Signed-off-by: Swapnil Patel <swapnil.patel@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c