]> exis.tech > repos - linux.git/commit
spi: rzv2h-rspi: Fix SPDR read access width for 16-bit RX
authorFelix Gu <ustc.gu@gmail.com>
Wed, 10 Jun 2026 12:08:17 +0000 (20:08 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 10 Jun 2026 15:39:13 +0000 (16:39 +0100)
commit310628484ef06f95c5589374fade917a5689787b
treeb7c193be0159a3845cb02809e8b359cd0a337cb2
parent0e152e4126fa14e697d8514cdd1567b18c679f08
spi: rzv2h-rspi: Fix SPDR read access width for 16-bit RX

The RZ/V2H hardware manual (section 7.5.2.2.1) specifies that read access
size for the SPI Data Register (SPDR) are fixed at 32 bits. The
RZV2H_RSPI_RX macro for the 16-bit data path used readw(), violating
this requirement.

Switch to readl() for the 16-bit RX path to conform to the hardware
specification.

Fixes: 8b61c8919dff ("spi: Add driver for the RZ/V2H(P) RSPI IP")
Suggested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Fabrizio Castro <fabrizio.castro.jz@renesas.com>
Link: https://patch.msgid.link/20260610-rzv2h-rspi-v2-1-40c80b4a2c90@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-rzv2h-rspi.c