]> 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)
committerMark Brown <broonie@kernel.org>
Mon, 12 Jan 2026 12:40:29 +0000 (12:40 +0000)
commitaf4b2dc4810380a469dcd7508923b70892c2996a
treec8d8243d6612cb59b2c1d15277cc0e742f194248
parent0196932f539e306e122b6edf24c9f5e30d1f73ee
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>
Link: https://patch.msgid.link/20260109-winbond-v6-17-rc1-oddr-v2-2-1fff6a2ddb80@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/linux/spi/spi-mem.h