Unverified Commit 329ca3ee authored by Alexander Dahl's avatar Alexander Dahl Committed by Mark Brown
Browse files

spi: atmel-quadspi: Avoid overwriting delay register settings



Previously the MR and SCR registers were just set with the supposedly
required values, from cached register values (cached reg content
initialized to zero).

All parts fixed here did not consider the current register (cache)
content, which would make future support of cs_setup, cs_hold, and
cs_inactive impossible.

Setting SCBR in atmel_qspi_setup() erases a possible DLYBS setting from
atmel_qspi_set_cs_timing().  The DLYBS setting is applied by ORing over
the current setting, without resetting the bits first.  All writes to MR
did not consider possible settings of DLYCS and DLYBCT.

Signed-off-by: default avatarAlexander Dahl <ada@thorsis.com>
Fixes: f732646d ("spi: atmel-quadspi: Add support for configuring CS timing")
Link: https://patch.msgid.link/20240918082744.379610-2-ada@thorsis.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent fffca269
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment