spi: airoha: return an error for continuous mode dirmap creation cases
authorMikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
Sun, 9 Nov 2025 07:06:50 +0000 (10:06 +0300)
committerMichael Trimarchi <michael@amarulasolutions.com>
Tue, 18 Nov 2025 19:07:41 +0000 (20:07 +0100)
commit8bd05b632a64673f43ea3368612fa7123a128e17
tree5cf9f738f4edb17efa88a2fc69ab19c2b7a96375
parenta7c3319bc007469554df8acbace3d41442229fe5
spi: airoha: return an error for continuous mode dirmap creation cases

This driver can accelerate single page operations only, thus
continuous reading mode should not be used.

Continuous reading will use sizes up to the size of one erase block.
This size is much larger than the size of single flash page. Use this
difference to identify continuous reading and return an error.

Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
drivers/spi/airoha_snfi_spi.c