]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: dw: fix wrong RX_SAMPLE_DLY setting after resume
authorJisheng Zhang <jszhang@kernel.org>
Mon, 3 Aug 2026 13:59:25 +0000 (21:59 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 11 Aug 2026 14:15:46 +0000 (15:15 +0100)
commit133c71b2c0bc976a4751f9e05ef7cdea67f964e5
treec285e72b83722d826fe08fabbc5b4e96b76b4574
parente3775cbffaf0e61fda4808a06963a6bc3fcddf82
spi: dw: fix wrong RX_SAMPLE_DLY setting after resume

On platforms which need a non-zero rx sample delay, the RX_SAMPLE_DLY
reg setting is lost after resume. The reason is that the reg may be
reset to 0 after resuming, but dws->cur_rx_sample_dly doesn't know
this fact. Fix this issue by clearing dws->cur_rx_sample_dly in
dw_spi_shutdown_chip().

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Suggested-by: Mark Brown <broonie@kernel.org>
Link: https://patch.msgid.link/20260803135925.12622-1-jszhang@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-dw.h