Skip to contentSkip to conversation

Put the OMAP2 SPI CS in inactive state when returning from suspend

PATCH Superseded Gregory CLEMENT 1 participant 1 message Nov 10, 2010 SPI

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

v2 cover Put the OMAP2 SPI CS in inactive state when returning from suspend

We notice that when system wake up from OFF mode, then CS is in inactive state until the first SPI transfer. For our design it lead to some conflict on this I/O.
Inactive state for CS when there is no transfer should be the correct behavior: this is the purpose of these patches.

* Change from v1:
Rebase on linus/master (after 2.6.37-rc1)
Do some clean-up and fix indentation on both patches Add more explanations for patch 2

Gregory CLEMENT (2):
spi: Add hook on suspend/resume for spi master
spi: Force CS to be in inactive state after off-mode transition

 drivers/spi/omap2_mcspi.c |   10 ++++++++++
 drivers/spi/spi.c         |   14 ++++++++++++++
 include/linux/spi/spi.h   |    5 +++++
 3 files changed, 29 insertions(+), 0 deletions(-)