summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/drivers/ata.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c
index 1dd0a48928..d3c60a923b 100644
--- a/firmware/drivers/ata.c
+++ b/firmware/drivers/ata.c
@@ -757,11 +757,15 @@ static int ata_power_on(void)
757 if( ata_hard_reset() ) 757 if( ata_hard_reset() )
758 return -1; 758 return -1;
759 759
760 rc = set_features();
761 if (rc)
762 return rc * 10 - 2;
763
760 if (set_multiple_mode(multisectors)) 764 if (set_multiple_mode(multisectors))
761 return -2; 765 return -3;
762 766
763 if (freeze_lock()) 767 if (freeze_lock())
764 return -3; 768 return -4;
765 769
766 return 0; 770 return 0;
767} 771}