summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/drivers/ata.c8
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,)
570 570
571 We choose alternative 2. 571 We choose alternative 2.
572 */ 572 */
573 ata_soft_reset(); 573 perform_soft_reset();
574 ret = -4; 574 ret = -4;
575 goto retry; 575 goto retry;
576 } 576 }
@@ -605,11 +605,11 @@ int ata_read_sectors(IF_MV2(int drive,)
605 -- ATA specification 605 -- ATA specification
606 */ 606 */
607 if ( status & (STATUS_BSY | STATUS_ERR | STATUS_DF) ) { 607 if ( status & (STATUS_BSY | STATUS_ERR | STATUS_DF) ) {
608 ata_soft_reset(); 608 perform_soft_reset();
609 ret = -5; 609 ret = -5;
610 goto retry; 610 goto retry;
611 } 611 }
612 612
613 buf += sectors * SECTOR_SIZE; /* Advance one chunk of sectors */ 613 buf += sectors * SECTOR_SIZE; /* Advance one chunk of sectors */
614 count -= sectors; 614 count -= sectors;
615 615
@@ -617,7 +617,7 @@ int ata_read_sectors(IF_MV2(int drive,)
617 } 617 }
618 618
619 if(!ret && !wait_for_end_of_transfer()) { 619 if(!ret && !wait_for_end_of_transfer()) {
620 ata_soft_reset(); 620 perform_soft_reset();
621 ret = -3; 621 ret = -3;
622 goto retry; 622 goto retry;
623 } 623 }