summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThom Johansen <thomj@rockbox.org>2006-01-16 23:23:39 +0000
committerThom Johansen <thomj@rockbox.org>2006-01-16 23:23:39 +0000
commitd47bb3c05ebf10590ccb6af96141d226ba298b79 (patch)
treed18972d855022f2994613d0c4875927727eae31c
parenta79027743ab00911a839a76420e7e26a741ceee3 (diff)
downloadrockbox-d47bb3c05ebf10590ccb6af96141d226ba298b79.zip
rockbox-d47bb3c05ebf10590ccb6af96141d226ba298b79.tar.gz
rockbox-d47bb3c05ebf10590ccb6af96141d226ba298b79.tar.bz2
rockbox-d47bb3c05ebf10590ccb6af96141d226ba298b79.tar.xz
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
-rw-r--r--firmware/drivers/ata.c4
1 files changed, 4 insertions, 0 deletions
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;
}