OSDN Git Service

drm/amd/display: Move backlight pwm enable function call
authorWyatt Wood <wyatt.wood@amd.com>
Wed, 11 Mar 2020 19:46:26 +0000 (15:46 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Apr 2020 18:44:44 +0000 (14:44 -0400)
commitac60b2294c9ea4a9c5f0c6c021c9a779243a8995
tree068b1037c7bf398b405f39dfaa299bd90585058e
parent16012806e697bdee44329adc3e55631c5ab667f3
drm/amd/display: Move backlight pwm enable function call

[Why]
Can't call dmub_abm_enable_fractional_pwm from dmub_abm_create as
dmub_srv is still null at this init stage, and therefore can't call to
fw.

[How]
Move call to dmub_abm_init_backlight. This should be the first call from
the driver for ABM.

Signed-off-by: Wyatt Wood <wyatt.wood@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce/dmub_abm.c