]> git.baikalelectronics.ru Git - kernel.git/commit
drm/dp_mst: Lower down debug info level when receive NAK
authorWayne Lin <Wayne.Lin@amd.com>
Thu, 28 Apr 2022 12:49:44 +0000 (20:49 +0800)
committerLyude Paul <lyude@redhat.com>
Thu, 28 Apr 2022 16:48:34 +0000 (12:48 -0400)
commit46bfa5c5d651c3dd3d1737d1485391e4b8b07077
tree7530b6f1e28f27210a38e1801411ac3840e504e1
parent0797eb679da279db2d0d97dbcb632a7a21b7d0ee
drm/dp_mst: Lower down debug info level when receive NAK

[Why]
It's reasonable that we receive NAK while doing DP_REMOTE_DPCD_READ.
Downstream device might reply NAK with the reason and source should
react accordingly.

e.g.
1. When downstream device can't handle corresponding message in time,
it then replies NAK as reason been set as DEFER.
2. When multi-function branch-sink device doesn't enumerate virtual
DP peer devices for those multi-function down facing ports. Without
virtual DPCD, branch device might reply NAK with reason as BAD_PARAM
indicating this port can't do aux DPCD read.

It's expected result. Not an error.

[How]
Use drm_dbg_kms() to replace drm_err() when receive NAK.

Changes since v1:
* drm_dp_mst_topology.c file path changed. Folder was rename from
 'dp' to 'display'

Signed-off-by: Wayne Lin <Wayne.Lin@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
[fixed some indenting issues]
Signed-off-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220428124944.1683680-1-Wayne.Lin@amd.com
drivers/gpu/drm/display/drm_dp_mst_topology.c