[PATCH 05/12] spi: atmel-quadspi: Drop redundant address buswidth check
From: Miquel Raynal
Date: Thu Nov 26 2026 - 14:11:26 EST
spi_mem_check_op() rejects an address phase with a non-zero byte count
and a zero buswidth, so op->addr.buswidth is always set when
op->addr.nbytes is non-zero. Drop the redundant condition in
atmel_qspi_sama7g5_set_cfg().
Signed-off-by: Miquel Raynal <miquel.raynal@xxxxxxxxxxx>
---
drivers/spi/atmel-quadspi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/spi/atmel-quadspi.c b/drivers/spi/atmel-quadspi.c
index 762a3fb0fca8..c53e0488dcb6 100644
--- a/drivers/spi/atmel-quadspi.c
+++ b/drivers/spi/atmel-quadspi.c
@@ -712,7 +712,7 @@ static int atmel_qspi_sama7g5_set_cfg(struct atmel_qspi *aq,
op->dummy.buswidth);
}
- if (op->addr.buswidth && op->addr.nbytes) {
+ if (op->addr.nbytes) {
ifr |= FIELD_PREP(QSPI_IFR_ADDRL_SAMA7G5, op->addr.nbytes - 1) |
QSPI_IFR_ADDREN;
iar = FIELD_PREP(QSPI_IAR_ADDR, op->addr.val);
--
2.56.0