forked from len0rd/rockbox
FS#9721 - No error check after writes in ata.c
Patch by Boris Gjenero (dreamlayers). Writes are retried on failure now so this should be safe. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23741 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b896e86842
commit
640d98de0f
1 changed files with 3 additions and 1 deletions
|
|
@ -250,7 +250,9 @@ STATICIRAM ICODE_ATTR int wait_for_end_of_transfer(void)
|
|||
{
|
||||
if (!wait_for_bsy())
|
||||
return 0;
|
||||
return (ATA_ALT_STATUS & (STATUS_RDY|STATUS_DRQ)) == STATUS_RDY;
|
||||
return (ATA_ALT_STATUS &
|
||||
(STATUS_BSY|STATUS_RDY|STATUS_DF|STATUS_DRQ|STATUS_ERR))
|
||||
== STATUS_RDY;
|
||||
}
|
||||
|
||||
#if (CONFIG_LED == LED_REAL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue