This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

redboot ide.c patch


The attached patch changes redboot's fs/ide.c so that
it first checks the status of the BSY bit to be 0 before
looking at any of the other bits.  Per the ATA rev. 6
spec i have:

7.3.3 & 7.15.3  Access restrictions (Alternate status register and
status register)

When the BSY bit is set to one, the other bits in this register
shall not be used. The contents of this register are not valid
while the device is in Sleep mode.


This was causing a detection failure on a Compact Flash card in
"True ATA" mode on one of our targets.

--
Andrew Dyer               |  adyer@righthandtech.com
Sr. Engineer              |  (630) 238-0789
RightHand Technologies    |  (630) 238-0469 (fax)
735 N. Edgewood Ave.      |
Suite D                   |
Wood Dale, IL 60191-1261  |
USA                       |

Attachment: ecos-ide-patch.txt
Description: ecos-ide-patch.txt


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]