[PATCH 2/3] i3c: set i3c_xfer.actual_len in controller drivers

Meagan Lloyd meaganlloyd at linux.microsoft.com
Wed Sep 16 12:11:08 PDT 2026


On Sun, Sep 13, 2026 at 01:26:12AM +0100, Jonathan Cameron wrote:
> On Fri, 11 Sep 2026 14:09:34 -0700
> Meagan Lloyd <meaganlloyd at linux.microsoft.com> wrote:
> 
> > Set i3c_xfer.actual_len for reads across the I3C Controller drivers.
> > 
> > actual_len provides a consistent location for device drivers to know the
> > read response bytes without overriding the len field.
> 
> Hi Meagan,
> 
> Why is that useful in this series?  Currently this sounds like
> an unrelated change.
> 
> Jonathan

Hi Jonathan,

For read operations, user-space allocates and provides a buffer, as well
as indicates how many bytes it would like to/can receive in that buffer.
actual_len allows us to report to user-space how many bytes were
actually received from the device and are thus valid in that buffer.

Thanks,
Meagan




More information about the linux-i3c mailing list