Hello, Koskinen Aaro (Nokia-D/Helsinki) wrote: > I'm afraid this patch needs more work. The optimized restoration of > chconf can cause occasionally errors with off mode if multiple chip > selects are in use. In practice it is needed to restore all CHxCONF > registers, not just the one by a specific chip select. > > ext Kevin Hilman wrote: >> From: Hemanth V >> >> This patch adds context save/restore feature to McSPI driver. >> This includes fixes by Aaro Koskinen >> >> Signed-off-by: Hemanth V >> Reviewed-by: Aaro Koskinen >> Signed-off-by: Kevin Hilman >> --- >> drivers/spi/omap2_mcspi.c | 134 +++++++++++++++++++++++++++++++++----------- >> 1 files changed, 100 insertions(+), 34 deletions(-) Here's a patch on top of PM branch that restores all the registers. This is basically the same what Jouni originally suggested (http://marc.info/?l=linux-omap&m=123366825525879&w=2). A.