summaryrefslogtreecommitdiff
path: root/firmware/drivers
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-02-17 01:30:25 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-02-17 01:30:25 +0000
commit867415b3f82db6b7d16c0ba0515cda5719e16990 (patch)
tree33b817261f7a24ea515f269d3dfd1e1b72b96f02 /firmware/drivers
parent7bd92239ca49c509e5df83ae2f150589d2745252 (diff)
set_features() is now called from ata_power_on()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4309 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers')
-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)
if( ata_hard_reset() )
return -1;
+ rc = set_features();
+ if (rc)
+ return rc * 10 - 2;
+
if (set_multiple_mode(multisectors))
- return -2;
+ return -3;
if (freeze_lock())
- return -3;
+ return -4;
return 0;
}