diff options
| author | Adrian Ng Ho Yin <adrian.ho.yin.ng@altera.com> | 2026-07-08 00:17:37 -0700 |
|---|---|---|
| committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2026-07-20 18:15:26 +0200 |
| commit | 2805eb4d075b9a939cb5802aee7fe251762cf38e (patch) | |
| tree | ae56c717e2c6b2c23a7baec1b2cb03dc2f0cb42d /include/linux/i3c | |
| parent | a2714ef178e077c0a5ac5959634349eb970341e7 (diff) | |
| download | linux-next-2805eb4d075b9a939cb5802aee7fe251762cf38e.tar.gz linux-next-2805eb4d075b9a939cb5802aee7fe251762cf38e.zip | |
i3c: ccc: Add actual_len to struct i3c_ccc_cmd_payload
Add actual_len to struct i3c_ccc_cmd_payload so drivers can report how
many bytes were received on a GET CCC without overwriting the requested
buffer length in len.
Signed-off-by: Adrian Ng Ho Yin <adrian.ho.yin.ng@altera.com>
Signed-off-by: Tze Yee Ng <tze.yee.ng@altera.com>
Reviewed-by: Alexandre Mergnat <amergnat@baylibre.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Tested-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
Tested-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> # on RZ/G3S
Link: https://patch.msgid.link/e452777c3a9be734a97e20b9822d8a4264ceadba.1783493868.git.tze.yee.ng@altera.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'include/linux/i3c')
| -rw-r--r-- | include/linux/i3c/ccc.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/i3c/ccc.h b/include/linux/i3c/ccc.h index ad59a4ae60d1..d8052949e57e 100644 --- a/include/linux/i3c/ccc.h +++ b/include/linux/i3c/ccc.h @@ -343,11 +343,13 @@ struct i3c_ccc_getxtime { /** * struct i3c_ccc_cmd_payload - CCC payload * - * @len: payload length + * @len: requested payload length + * @actual_len: number of bytes received on a GET CCC (filled by the driver) * @data: payload data. This buffer must be DMA-able */ struct i3c_ccc_cmd_payload { u16 len; + u16 actual_len; void *data; }; |
