Re: [PATCH 2/3] i3c: set i3c_xfer.actual_len in controller drivers
From: Meagan Lloyd
Date: Wed Sep 16 2026 - 15:29:21 EST
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@xxxxxxxxxxxxxxxxxxx> 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