Commit 5229081
drm/mediatek: Add return value check when reading DPCD
Check the return value of drm_dp_dpcd_readb() to confirm that
AUX communication is successful. To simplify the code, replace
drm_dp_dpcd_readb() and DP_GET_SINK_COUNT() with drm_dp_read_sink_count().
Fixes: f70ac09 ("drm/mediatek: Add MT8195 Embedded DisplayPort driver")
Signed-off-by: Liankun Yang <[email protected]>
Reviewed-by: Guillaume Ranquet <[email protected]>
Link: https://patchwork.kernel.org/project/dri-devel/patch/[email protected]/
Signed-off-by: Chun-Kuang Hu <[email protected]>1 parent c4bd13b commit 5229081
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2103 | 2103 | | |
2104 | 2104 | | |
2105 | 2105 | | |
2106 | | - | |
2107 | 2106 | | |
2108 | 2107 | | |
2109 | 2108 | | |
| |||
2118 | 2117 | | |
2119 | 2118 | | |
2120 | 2119 | | |
2121 | | - | |
2122 | | - | |
| 2120 | + | |
| 2121 | + | |
2123 | 2122 | | |
2124 | 2123 | | |
2125 | 2124 | | |
| |||
0 commit comments