[Bug 1580] spi-sd-card: use bigger chunks and yield processor while waiting for read data

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Tue Jun 22 11:28:02 UTC 2010


https://www.rtems.org/bugzilla/show_bug.cgi?id=1580

--- Comment #2 from Arnout Vandecappelle <arnout at mind.be> 2010-06-22 06:28:01 CDT ---
(In reply to comment #1)
> +       /* How much to sleep when retrying.  First time, don't sleep yet    
> +          since there is a high likelihood that the access time is just    
> +          a few bytes. */                                                  
> +       int wait_time_bytes = 0;
> 
> This variable is unused.

Oops, forgot to remove that.  Can you do it?

I first tried to do it with sleeping like it's done for the writes, but then I
noticed that the waiting times for reads are too short to sleep: read latency
is typically in the order of tens of microseconds, while a tick is a
millisecond.  Is it a safe assumption that the tick is around one millisecond?

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list