[PATCH 1/3] i3c: master: Add inline i3c_master_readsl and i3c_master_writesl

Wolfram Sang wsa+renesas at sang-engineering.com
Fri Jun 20 14:15:09 PDT 2025


On Fri, Jun 20, 2025 at 06:54:59PM +0200, Jorge Marques wrote:
> The i3c abstraction excepts u8 buffers, but some controllers have a bus
> width of 32-bits and don't support flagging valid bytes, so it is
> required to read/write long words and to use memcpy on the remainder of
> the number of bytes by 32-bits to not write/read outside the buffer
> bounds.
> 
> Signed-off-by: Jorge Marques <jorge.marques at analog.com>

Suggested-by: Wolfram Sang <wsa+renesas at sang-engineering.com>

> + * i3c_master_writesl- Write bytes to long memory region from byte array

Frank proposed the name 'i3c_writel_fifo' which I like a tad better.
Opinions?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-i3c/attachments/20250620/be3b9f2f/attachment.sig>


More information about the linux-i3c mailing list