Hi,

I'm facing a problem with a driver for a SPI device: I think the
problem may be more general or perhaps I'm just missing something
obvious. I want to put a SPI device to sleep and this is done by
sending a command on the SPI bus. The first place I tried is the
suspend callback of struct spi_driver. That didn't work, the system
deadlocked on suspending (by writting mem to /sys/power/state). I
guess the reason is that the SPI master driver uses bit banging code
that relies on workqueues, which are kernel threads that are stopped
before the suspend callback is invoked. Does this make sense or I'm
doing something wrong? Any pointer to devices with similar needs for
going to sleep that I may study?

Thanks!

-- 
Christian Pellegrin, see http://www.evolware.org/chri/
"Real Programmers don't play tennis, or any other sport which requires
you to change clothes. Mountain climbing is OK, and Real Programmers
wear their climbing boots to work in case a mountain should suddenly
spring up in the middle of the computer room."

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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