OK, that makes sense. Even if it does not follow exactly the "undefined" value 
mentioned in the API definition.
Anyways, you both helped me a lot to clarify this. Thx again.
Sylvain

-----Original Message-----
From: jassi brar [mailto:[email protected]] 
Sent: Monday, March 15, 2010 2:53 PM
To: Centelles, Sylvain
Cc: Baruch Siach; [email protected]
Subject: Re: [spi-devel-general] Purpose of the "msg->status"

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.
---------------------------------------------------------------------
Intel Corporation SAS (French simplified joint stock company)
Registered headquarters: "Les Montalets"- 2, rue de Paris, 
92196 Meudon Cedex, France
Registration Number:  302 456 199 R.C.S. NANTERRE
Capital: 4,572,000 Euros

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
------------------------------------------------------------------------------
Download Intel&#174; 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

Reply via email to