[Bug 1579] New: spi-sd-card: use gradually increasing sleep times when waiting for write to finish
bugzilla-daemon at rtems.org
bugzilla-daemon at rtems.org
Mon Jun 21 16:47:21 UTC 2010
https://www.rtems.org/bugzilla/show_bug.cgi?id=1579
Summary: spi-sd-card: use gradually increasing sleep times when
waiting for write to finish
Product: RTEMS
Version: HEAD
Platform: All
OS/Version: RTEMS
Status: NEW
Severity: enhancement
Priority: P3
Component: misc
AssignedTo: sebastian.huber at embedded-brains.de
ReportedBy: arnout at mind.be
CC: joel.sherrill at oarcorp.com
Depends on: 1567
The function sd_card_wait() waits for a block write to finish on the SD card
before issuing a new commands. This is done by polling the SPI bus. Although
the processor is yielded while waiting, this polling loop still blocks
lower-priority tasks while waiting. In practice, when writing a lot of data
(which fills up the buffers inside the SD card), the wait times can run up to
250ms.
Attached patch uses increasing sleep times instead of just yielding. It
depends on attachment 792 to bug 1567.
--
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