On Mon, Mar 15, 2010 at 10:06 PM, Centelles, Sylvain <[email protected]> wrote: > Hi Baruch, > Thx for your fast answer. > I had seen this piece of code. But if this is the only purpose of the > msg->status, then it means it's only used to give return status of the > transfer after the completion. > That mean that the only possible value will be an error code or success. The > EINPROGRESS (used in the pxa2xx_spi.c for example) will never have a chance > to be returned at this place, as any completion will overwrite it. Right? > That what was confusing me... When a xfer is submitted, the status is set by default should the xfer exit via some un-tested path. If the driver state machine has only fixed and tested exit points, you perhaps don't need to set the default status.
------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ spi-devel-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/spi-devel-general
