summaryrefslogtreecommitdiffstats
path: root/firmware
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
parent7bd92239ca49c509e5df83ae2f150589d2745252 (diff)
downloadrockbox-867415b3f82db6b7d16c0ba0515cda5719e16990.tar.gz
rockbox-867415b3f82db6b7d16c0ba0515cda5719e16990.tar.bz2
rockbox-867415b3f82db6b7d16c0ba0515cda5719e16990.zip
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')
-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;
}