From 97599d3e47c3e1af574eb83fbbf4b5d7343c5798 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Tue, 10 May 2005 22:39:53 +0000 Subject: 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 --- firmware/drivers/ata.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'firmware') 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; } -- cgit v1.2.3