diff options
| author | David Carlier <devnexen@gmail.com> | 2026-10-30 14:59:06 +0000 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-11-02 00:01:45 +0000 |
| commit | 30421d2469d32067dca5deb77de764bea41f3bb1 (patch) | |
| tree | 5e00dfa0a154806603a5b55435f4623730c1f114 /scripts/dummy-tools/python3 | |
| parent | aed0c7475d6af333fb9b37848ed5e4f92a808ffa (diff) | |
spi: rtk-nor: Limit exec_op writes to one byte per operation
rtk_spi_do_write_and_cmds() issues a single writeb() to the data window,
so only the first byte of an addressed write reaches the flash, yet
exec_op reports success for the whole buffer. spi-nor hits this when
writing without a dirmap descriptor, e.g. for OTP security registers.
Such ops cannot be rejected in supports_op, since spi-nor probes page
program support with an addressed two byte write. Clamp them to one byte
in adjust_op_size instead, so spi-nor loops over the buffer.
Fixes: aca8cbecdd2e ("spi: spi-mem: Add Realtek SPI NOR flash controller driver")
Reported-by: Sashiko <sashiko-bot@kernel.org>
Closes: https://lore.kernel.org/all/20260930071125.529791F000FF@smtp.kernel.org/
Signed-off-by: David Carlier <devnexen@gmail.com>
Link: https://patch.msgid.link/20261030145909.285144-1-devnexen@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/dummy-tools/python3')
0 files changed, 0 insertions, 0 deletions
