diff options
author | Lyude Paul <[email protected]> | 2020-03-06 18:49:21 -0500 |
---|---|---|
committer | Lyude Paul <[email protected]> | 2020-03-10 14:22:42 -0400 |
commit | 4c0a9b62b3e36bc5b06c1a796e5d4d938d9c556a (patch) | |
tree | 8d061172623716bd145e7eec81b64867ddd82515 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 855e764d3979c21dc9f534fa303f1b63adfe5148 (diff) |
drm/dp_mst: Make drm_dp_mst_dpcd_write() consistent with drm_dp_dpcd_write()
Noticed this while having some problems with hubs sometimes not being
detected on the first plug. Every single dpcd read or write function
returns the number of bytes transferred on success or a negative error
code, except apparently for drm_dp_mst_dpcd_write() - which returns 0 on
success.
There's not really any good reason for this difference that I can tell,
and having the two functions give differing behavior means that
drm_dp_dpcd_write() will end up returning 0 on success for MST devices,
but the number of bytes transferred for everything else.
So, fix that and update the kernel doc.
Signed-off-by: Lyude Paul <[email protected]>
Fixes: 2f221a5efed4 ("drm/dp_mst: Add MST support to DP DPCD R/W functions")
Cc: Hans de Goede <[email protected]>
Cc: Mikita Lipski <[email protected]>
Cc: Sean Paul <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions