Skip to content

Commit

Permalink
spi: atmel-quadspi: Fix wrong register value written to MR
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
LeSpocky authored and broonie committed Oct 1, 2024
1 parent 9852d85 commit 162d9b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/atmel-quadspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ static int atmel_qspi_set_cfg(struct atmel_qspi *aq,
*/
if (!(aq->mr & QSPI_MR_SMM)) {
aq->mr |= QSPI_MR_SMM;
atmel_qspi_write(aq->scr, aq, QSPI_MR);
atmel_qspi_write(aq->mr, aq, QSPI_MR);
}

/* Clear pending interrupts */
Expand Down

0 comments on commit 162d9b5

Please sign in to comment.