On Thu, Feb 21, 2008 at 2:32 PM, Zik Saleeba <[EMAIL PROTECTED]> wrote:
> I've been having some more problems with my SPI application on the
>  PXA270. When I suspend the system it all goes into suspend mode
>  correctly but when it comes back on resume any call to the pxa2xx_spi
>  code just hangs.

I've looked into this problem a bit more. It looks like suspend/resume
can never have worked on the pxa2xx spi subsystem.

One problem I've found is that after suspend the SSP registers don't
come back in their previous state. They need to be saved and restored.
I've added in some code to do that and it means that at least the
system doesn't hang as soon as spi is accessed during a resume. It
does however still hang at some later point. I'm still tracking that
one down.

I found that saving and restoring SSCR0, SSCR1, SSITR, SST0 (for
pxa270) and SSPSP was enough to bring the system back to life again.

Would more experienced people like to comment on whether I'm on the
right track here?

Cheers,
Zik

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
spi-devel-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spi-devel-general

Reply via email to