diff options
| author | Mikhail Kshevetskiy <[email protected]> | 2025-11-09 10:06:47 +0300 |
|---|---|---|
| committer | Michael Trimarchi <[email protected]> | 2025-11-18 20:07:41 +0100 |
| commit | ba54a70f5c96e5805f3f9f07807364a440ea09fc (patch) | |
| tree | 0ff8308895a6922f1f92204f7b52df0590d8b23f /drivers | |
| parent | c3c758c20d3560639bfad6ac367f1a13278d67ca (diff) | |
spi: airoha: remove unnecessary operation adjust_op_size
This operation 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 <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/spi/airoha_snfi_spi.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/spi/airoha_snfi_spi.c b/drivers/spi/airoha_snfi_spi.c index 3ea25b293d1..4eb01038404 100644 --- a/drivers/spi/airoha_snfi_spi.c +++ b/drivers/spi/airoha_snfi_spi.c @@ -525,21 +525,6 @@ static int airoha_snand_nfi_config(struct airoha_snand_priv *priv) SPI_NFI_CUS_SEC_SIZE, val); } -static int airoha_snand_adjust_op_size(struct spi_slave *slave, - struct spi_mem_op *op) -{ - size_t max_len; - - 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; -} - static bool airoha_snand_supports_op(struct spi_slave *slave, const struct spi_mem_op *op) { @@ -691,7 +676,6 @@ static int airoha_snand_nfi_setup(struct spi_slave *slave, } static const struct spi_controller_mem_ops airoha_snand_mem_ops = { - .adjust_op_size = airoha_snand_adjust_op_size, .supports_op = airoha_snand_supports_op, .exec_op = airoha_snand_exec_op, }; |
