From d47bb3c05ebf10590ccb6af96141d226ba298b79 Mon Sep 17 00:00:00 2001 From: Thom Johansen Date: Mon, 16 Jan 2006 23:23:39 +0000 Subject: Temp fix for iPod Nano. Disable ATA sleep, as this will hang disk accesses. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8357 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/ata.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index 7ea29ea..198f393 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c @@ -991,6 +991,9 @@ static int ata_perform_sleep(void) { int ret = 0; + /* ATA sleep is currently broken on Nano, and will hang all subsequent + accesses, so disable until we find a cure. */ +#ifndef APPLE_IPODNANO mutex_lock(&ata_mtx); SET_REG(ATA_SELECT, ata_device); @@ -1011,6 +1014,7 @@ static int ata_perform_sleep(void) sleeping = true; mutex_unlock(&ata_mtx); +#endif return ret; } -- cgit v1.1