Skip to content

Commit b126f1b

Browse files
LeSpockygregkh
authored andcommitted
spi: atmel-quadspi: Fix wrong register value written to MR
commit 162d9b5 upstream. 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]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 2327c3f commit b126f1b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)