On Wednesday 30 January 2008, Nikesh Gawande wrote:
>  I am doing this in my
> driver but at the point when spi_sync() is called I get the following
> messages. which is something about segmentation fault. I am not
> understanding the error.

Presumably you didn't set up the spi_message correctly or spi_device
correctly.  Find what the code at that location was referencing, and
then you'll know what initialization you forgot.


> Is it compulsory to call spi_sync() or spi_async() functions for data
> transfer. Is there any other way to do it?

The spi_sync() call wraps spi_async(); there are a few other wrappers
too.  Fundamentally everything boils down to a spi_async() call; there
is no other primitive at the controller level.

- Dave


-------------------------------------------------------------------------
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