Skip to content

Commit 162d9b5

Browse files
LeSpockybroonie
authored andcommitted
spi: atmel-quadspi: Fix wrong register value written to MR
aq->mr should go to MR, nothing else. Fixes: 329ca3e ("spi: atmel-quadspi: Avoid overwriting delay register settings") Signed-off-by: Alexander Dahl <[email protected]> Link: https://lore.kernel.org/linux-spi/[email protected]/T/#u Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 9852d85 commit 162d9b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/spi/atmel-quadspi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ static int atmel_qspi_set_cfg(struct atmel_qspi *aq,
377377
*/
378378
if (!(aq->mr & QSPI_MR_SMM)) {
379379
aq->mr |= QSPI_MR_SMM;
380-
atmel_qspi_write(aq->scr, aq, QSPI_MR);
380+
atmel_qspi_write(aq->mr, aq, QSPI_MR);
381381
}
382382

383383
/* Clear pending interrupts */

0 commit comments

Comments
 (0)