drm/amd/display: only warn once in dce110_edp_wait_for_hpd_ready()
Subsystems (3)
PATCH 1/1 drm/amd/display: only warn once in dce110_edp_wait_for_hpd_ready()
Since, hot plugging eDP displays isn't supported, it is sufficient for us to warn about the lack of a connected display once. So, use ASSERT() in dce110_edp_wait_for_hpd_ready() instead of DC_LOG_WARNING().
Signed-off-by Hamza Mahfooz <[email protected]>
--- drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c +2 -4
@@ -779,10 +779,8 @@ void dce110_edp_wait_for_hpd_ready(dal_gpio_destroy_irq (&hpd); -if (false == edp_hpd_high) { -DC_LOG_WARNING ( -"%s: wait timed out!\n" , __func__); - } +/* ensure that the panel is detected */ +ASSERT (edp_hpd_high); } void dce110_edp_power_control(
Signature · 1 line
2.39.1
Quoted 5 lines · Hamza Mahfooz
Since, hot plugging eDP displays isn't supported, it is sufficient for us to warn about the lack of a connected display once. So, use
ASSERT()indce110_edp_wait_for_hpd_ready()instead ofDC_LOG_WARNING().Signed-off-by Hamza Mahfooz <[email protected]>
Reviewed-by Harry Wentland <[email protected]>
Harry
Quoted 20 lines
--- drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c +2
-4@@ -779,10 +779,8 @@ void dce110_edp_wait_for_hpd_ready(dal_gpio_destroy_irq (&hpd); -if (false == edp_hpd_high) { -DC_LOG_WARNING ( -"%s: wait timed out!\n" , __func__); - } +/* ensure that the panel is detected */ + ASSERT(edp_hpd_high > } void dce110_edp_power_control(