]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: spi-mem: Create a repeated address operation
authorMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 9 Jan 2026 17:18:00 +0000 (18:18 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 29 Jan 2026 19:21:38 +0000 (20:21 +0100)
commit28c3edc43cb9ab6ebe43439d48a662a095409b03
tree97396c95e8b4fe1f659ef1f6c996243b83c0e2de
parent1ebbefb73ceba9c913ea42f44db1fe8e4d73cbc0
spi: spi-mem: Create a repeated address operation

In octal DTR mode addresses may either be long enough to cover at least
two bytes (in which case the existing macro works), or otherwise for
single byte addresses, the byte must also be duplicated and sent twice:
on each front of the clock.

Create a macro for this common case.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
include/linux/spi/spi-mem.h