On Mon, 24 Mar 2025 13:51:18 +0200, Dmitry Baryshkov wrote: > 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. > > As suggested by Jani implement new set of DPCD access helpers, which > ignore partial access, always return 0 or an error code. Implement > new helpers using existing functions to ensure backwards compatibility > and to assess necessity to handle incomplete reads on a global scale. > Currently only one possible place has been identified, dp-aux-dev, which > needs to handle possible holes in DPCD. > > [...]
Applied to drm-misc-next, thanks! [1/6] drm/display: dp: implement new access helpers commit: d8343e115658fb35115e0720f4761ffa0147329a [2/6] drm/display: dp: change drm_dp_dpcd_read_link_status() return value commit: fcbb93f1e48a150159534a1e6ec19e6fdf9196df [3/6] drm/display: dp: use new DCPD access helpers commit: af67978ee37e543e62d6d3f7eba58f8f259423a7 [4/6] drm/display: dp-cec: use new DCPD access helpers commit: 97f37939881327e118d6252289973c186377a075 [5/6] drm/display: dp-mst-topology: use new DCPD access helpers commit: 2554da0de3e8312c7149d03d702ddc6c1ff5e3de [6/6] drm/display: dp-tunnel: use new DCPD access helpers commit: 95c4ea2e0329b370a53a041a19227f8da3f47481 Best regards, -- With best wishes Dmitry