Re: [PATCH RFC 2/7] drm/display: dp: implement new access helpers

2025-01-23 Thread Dmitry Baryshkov
On Thu, Jan 23, 2025 at 12:26:25PM +0200, Jani Nikula wrote: > On Fri, 17 Jan 2025, 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 part

Re: [PATCH RFC 2/7] drm/display: dp: implement new access helpers

2025-01-23 Thread Jani Nikula
On Fri, 17 Jan 2025, 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

[PATCH RFC 2/7] drm/display: dp: implement new access helpers

2025-01-17 Thread Dmitry Baryshkov
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