diff options
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/ata.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index f63b795a19..67aab8a9ba 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c | |||
@@ -949,6 +949,7 @@ static int ata_power_on(void) | |||
949 | int rc; | 949 | int rc; |
950 | 950 | ||
951 | ide_power_enable(true); | 951 | ide_power_enable(true); |
952 | sleep(HZ/50); /* allow voltage to build up */ | ||
952 | if( ata_hard_reset() ) | 953 | if( ata_hard_reset() ) |
953 | return -1; | 954 | return -1; |
954 | 955 | ||
@@ -1145,7 +1146,7 @@ int ata_init(void) | |||
1145 | if (!ide_powered()) /* somebody has switched it off */ | 1146 | if (!ide_powered()) /* somebody has switched it off */ |
1146 | { | 1147 | { |
1147 | ide_power_enable(true); | 1148 | ide_power_enable(true); |
1148 | sleep(HZ); /* allow voltage to build up */ | 1149 | sleep(HZ/50); /* allow voltage to build up */ |
1149 | } | 1150 | } |
1150 | 1151 | ||
1151 | /* first try, hard reset at cold start only */ | 1152 | /* first try, hard reset at cold start only */ |