This is an automatically generated commit. When doing `git bisect`, consider `git bisect --skip`. Signed-off-by: Kenneth Kasilag <kenneth@kasilag.me> Link: https://github.com/openwrt/openwrt/pull/21019 Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
34 lines
1.2 KiB
Diff
34 lines
1.2 KiB
Diff
From 661856ca131c8bf6724905966e02149805660abe Mon Sep 17 00:00:00 2001
|
|
From: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
|
|
Date: Sun, 12 Oct 2025 15:16:53 +0300
|
|
Subject: [PATCH 05/14] spi: airoha: remove unnecessary restriction length
|
|
|
|
The "length < 160" restriction is not needed because airoha_snand_write_data()
|
|
and airoha_snand_read_data() will properly handle data transfers above
|
|
SPI_MAX_TRANSFER_SIZE.
|
|
|
|
Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
|
|
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
|
|
Link: https://patch.msgid.link/20251012121707.2296160-3-mikhail.kshevetskiy@iopsys.eu
|
|
Signed-off-by: Mark Brown <broonie@kernel.org>
|
|
---
|
|
drivers/spi/spi-airoha-snfi.c | 7 -------
|
|
1 file changed, 7 deletions(-)
|
|
|
|
--- a/drivers/spi/spi-airoha-snfi.c
|
|
+++ b/drivers/spi/spi-airoha-snfi.c
|
|
@@ -619,13 +619,6 @@ static int airoha_snand_adjust_op_size(s
|
|
|
|
if (op->data.nbytes > max_len)
|
|
op->data.nbytes = max_len;
|
|
- } else {
|
|
- max_len = 1 + op->addr.nbytes + op->dummy.nbytes;
|
|
- if (max_len >= 160)
|
|
- return -EOPNOTSUPP;
|
|
-
|
|
- if (op->data.nbytes > 160 - max_len)
|
|
- op->data.nbytes = 160 - max_len;
|
|
}
|
|
|
|
return 0;
|