drm/amd/display: Check status from dpcd_get_tunneling_device_data
authorAlex Hung <alex.hung@amd.com>
Mon, 30 Sep 2024 17:45:12 +0000 (11:45 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Oct 2024 15:22:42 +0000 (11:22 -0400)
commit9237c9504b0e4f738365f023539c6f3dc5a8bb49
treeadd5bb30e62beaa5badd1bf4bc2ed88c464a86e8
parent204f55736eb36b530cbcd6959477b44ed87a2213
drm/amd/display: Check status from dpcd_get_tunneling_device_data

[WHAT & HOW]
dpcd_get_tunneling_device_data calls core_link_read_dpcd which can
fail. The status from core_link_read_dpcd should be checked and error
messages is printed in case of failures.

This fixes 1 UNUSED_VALUE issue reported by Coverity.

Reviewed-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Roman Li <roman.li@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_dpia.c