Skip to content
Unverified Commit 683f65de authored by Evan Green's avatar Evan Green Committed by Mark Brown
Browse files

spi: pxa2xx: Add CS control clock quirk



In some circumstances on Intel LPSS controllers, toggling the LPSS
CS control register doesn't actually cause the CS line to toggle.
This seems to be failure of dynamic clock gating that occurs after
going through a suspend/resume transition, where the controller
is sent through a reset transition. This ruins SPI transactions
that either rely on delay_usecs, or toggle the CS line without
sending data.

Whenever CS is toggled, momentarily set the clock gating register
to "Force On" to poke the controller into acting on CS.

Signed-off-by: default avatarRajat Jain <rajatja@google.com>
Signed-off-by: default avatarEvan Green <evgreen@chromium.org>
Link: https://lore.kernel.org/r/20200211223700.110252-1-rajatja@google.com
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 138c9c32
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment