aboutsummaryrefslogtreecommitdiff
path: root/lib/crypto/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorLeo Li <[email protected]>2024-08-20 14:34:15 -0400
committerAlex Deucher <[email protected]>2024-09-02 11:34:11 -0400
commit988fe2862635c1b1b40e41c85c24db44ab337c13 (patch)
treeefda6f5e60fa88085089d1e72df4f67a14069adf /lib/crypto/mpi/mpi-sub-ui.c
parentc66db9e9a025006d729c87143c3f43b5873b4a1f (diff)
drm/amd/display: Lock DC and exit IPS when changing backlight
Backlight updates require aux and/or register access. Therefore, driver needs to disallow IPS beforehand. So, acquire the dc lock before calling into dc to update backlight - we should be doing this regardless of IPS. Then, while the lock is held, disallow IPS before calling into dc, then allow IPS afterwards (if it was previously allowed). Reviewed-by: Aurabindo Pillai <[email protected]> Reviewed-by: Roman Li <[email protected]> Signed-off-by: Leo Li <[email protected]> Signed-off-by: Hamza Mahfooz <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions