forked from len0rd/rockbox
Increased BSY & RDY timeouts to 10 seconds
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2174 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
88aeb7140c
commit
e65b65eeb0
1 changed files with 2 additions and 2 deletions
|
@ -105,7 +105,7 @@ static int perform_soft_reset(void);
|
||||||
static int wait_for_bsy(void) __attribute__ ((section (".icode")));
|
static int wait_for_bsy(void) __attribute__ ((section (".icode")));
|
||||||
static int wait_for_bsy(void)
|
static int wait_for_bsy(void)
|
||||||
{
|
{
|
||||||
int timeout = current_tick + HZ*4;
|
int timeout = current_tick + HZ*10;
|
||||||
while (TIME_BEFORE(current_tick, timeout) && (ATA_ALT_STATUS & STATUS_BSY))
|
while (TIME_BEFORE(current_tick, timeout) && (ATA_ALT_STATUS & STATUS_BSY))
|
||||||
yield();
|
yield();
|
||||||
|
|
||||||
|
@ -127,7 +127,7 @@ static int wait_for_rdy(void)
|
||||||
if (!wait_for_bsy())
|
if (!wait_for_bsy())
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
timeout = current_tick + HZ*4;
|
timeout = current_tick + HZ*10;
|
||||||
|
|
||||||
while (TIME_BEFORE(current_tick, timeout) &&
|
while (TIME_BEFORE(current_tick, timeout) &&
|
||||||
!(ATA_ALT_STATUS & STATUS_RDY))
|
!(ATA_ALT_STATUS & STATUS_RDY))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue