diff options
author | 2025-03-24 13:51:19 +0200 | |
---|---|---|
committer | 2025-03-25 16:20:38 +0200 | |
commit | d8343e115658fb35115e0720f4761ffa0147329a (patch) | |
tree | 91999d2530d761dcb0c4fea383ba71810c156819 /drivers/gpu/drm/msm/dp/dp_ctrl.c | |
parent | drm/ci: arm64.config: mediatek: enable PHY drivers (diff) | |
download | wireguard-linux-d8343e115658fb35115e0720f4761ffa0147329a.tar.xz wireguard-linux-d8343e115658fb35115e0720f4761ffa0147329a.zip |
drm/display: dp: implement new access helpers
Existing DPCD access functions return an error code or the number of
bytes being read / write in case of partial access. However a lot of
drivers either (incorrectly) ignore partial access or mishandle error
codes. In other cases this results in a boilerplate code which compares
returned value with the size.
Implement new set of DPCD access helpers, which ignore partial access,
always return 0 or an error code.
Suggested-by: Jani Nikula <jani.nikula@linux.intel.com>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20250324-drm-rework-dpcd-access-v4-1-e80ff89593df@oss.qualcomm.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Diffstat (limited to 'drivers/gpu/drm/msm/dp/dp_ctrl.c')
0 files changed, 0 insertions, 0 deletions