From 867415b3f82db6b7d16c0ba0515cda5719e16990 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Tue, 17 Feb 2004 01:30:25 +0000 Subject: set_features() is now called from ata_power_on() git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4309 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/ata.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'firmware/drivers/ata.c') 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; } -- cgit v1.2.3