diff options
author | Alessandro Grassi <alessandro.grassi@mailbox.org> | 2025-05-02 11:55:20 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2025-05-14 10:56:43 +0200 |
commit | fb98bd0a13de2c9d96cb5c00c81b5ca118ac9d71 (patch) | |
tree | ece1c20c6cac02062ac0557629ea064adf9ef44c /lib/spinlock_debug.c | |
parent | e979a7c79fbc706f6dac913af379ef4caa04d3d5 (diff) |
spi: spi-sun4i: fix early activation
The SPI interface is activated before the CPOL setting is applied. In
that moment, the clock idles high and CS goes low. After a short delay,
CPOL and other settings are applied, which may cause the clock to change
state and idle low. This transition is not part of a clock cycle, and it
can confuse the receiving device.
To prevent this unexpected transition, activate the interface while CPOL
and the other settings are being applied.
Signed-off-by: Alessandro Grassi <alessandro.grassi@mailbox.org>
Link: https://patch.msgid.link/20250502095520.13825-1-alessandro.grassi@mailbox.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'lib/spinlock_debug.c')
0 files changed, 0 insertions, 0 deletions