diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-05-10 22:39:53 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-05-10 22:39:53 +0000 |
commit | 97599d3e47c3e1af574eb83fbbf4b5d7343c5798 (patch) | |
tree | 36f3d4ed03c02704a1a61f78b40d0b7b7e763aae | |
parent | e3a2d8647d1688a0b6e47960009294dbdb8bd63c (diff) | |
download | rockbox-97599d3e47c3e1af574eb83fbbf4b5d7343c5798.tar.gz rockbox-97599d3e47c3e1af574eb83fbbf4b5d7343c5798.zip |
This should (hopefully) fix the long-standing RLD problem once and for all.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6452 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/drivers/ata.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index e303a8b946..c8ad3b3151 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c @@ -570,7 +570,7 @@ int ata_read_sectors(IF_MV2(int drive,) We choose alternative 2. */ - ata_soft_reset(); + perform_soft_reset(); ret = -4; goto retry; } @@ -605,11 +605,11 @@ int ata_read_sectors(IF_MV2(int drive,) -- ATA specification */ if ( status & (STATUS_BSY | STATUS_ERR | STATUS_DF) ) { - ata_soft_reset(); + perform_soft_reset(); ret = -5; goto retry; } - + buf += sectors * SECTOR_SIZE; /* Advance one chunk of sectors */ count -= sectors; @@ -617,7 +617,7 @@ int ata_read_sectors(IF_MV2(int drive,) } if(!ret && !wait_for_end_of_transfer()) { - ata_soft_reset(); + perform_soft_reset(); ret = -3; goto retry; } |