]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: spi-mem: Add a packed command operation
authorMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 10 Apr 2026 17:41:02 +0000 (19:41 +0200)
committerMark Brown <broonie@kernel.org>
Sat, 11 Apr 2026 10:53:54 +0000 (11:53 +0100)
commitf79ee9e4b23244e77b28d176ce99a2d84d813ac5
tree426a2b5160a2bed392a1aed13e9eeae2e1957c99
parent5e75c1d4d386fb7d64e2b19355e4d38dd4fd8845
spi: spi-mem: Add a packed command operation

Instead of repeating the command opcode twice, some flash devices try to
pack command and address bits. In this case, the second opcode byte
being sent (LSB) is free to be used. The input data must be ANDed to
only provide the relevant bits.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://patch.msgid.link/20260410-winbond-6-19-rc1-oddr-v1-2-2ac4827a3868@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/linux/spi/spi-mem.h