diff options
author | Michael Sparmann <theseven@rockbox.org> | 2010-06-21 16:54:25 +0000 |
---|---|---|
committer | Michael Sparmann <theseven@rockbox.org> | 2010-06-21 16:54:25 +0000 |
commit | b59d6642e21d3b9a7c64824780742aaa2294fee3 (patch) | |
tree | 52bfab1fe78c0f9545834481eb988b29cb2dc8e9 | |
parent | 35e8b1429a2cdcf6580f6d25890fed9865165d0b (diff) |
Fix ata_idle_notify on iPod Nano 2G
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27020 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/target/arm/s5l8700/ata-nand-s5l8700.c | 1 | ||||
-rw-r--r-- | firmware/target/arm/s5l8700/ipodnano2g/nand-nano2g.c | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/firmware/target/arm/s5l8700/ata-nand-s5l8700.c b/firmware/target/arm/s5l8700/ata-nand-s5l8700.c index ad87d9ea73..a5dcb4b874 100644 --- a/firmware/target/arm/s5l8700/ata-nand-s5l8700.c +++ b/firmware/target/arm/s5l8700/ata-nand-s5l8700.c @@ -19,7 +19,6 @@ * ****************************************************************************/ #include "config.h" -#include "ata_idle_notify.h" #include "system.h" #include <string.h> #include "thread.h" diff --git a/firmware/target/arm/s5l8700/ipodnano2g/nand-nano2g.c b/firmware/target/arm/s5l8700/ipodnano2g/nand-nano2g.c index b7e1f8494b..86eda75768 100644 --- a/firmware/target/arm/s5l8700/ipodnano2g/nand-nano2g.c +++ b/firmware/target/arm/s5l8700/ipodnano2g/nand-nano2g.c @@ -31,6 +31,7 @@ #include <mmu-arm.h> #include <string.h> #include "led.h" +#include "ata_idle_notify.h" #define NAND_CMD_READ 0x00 @@ -92,7 +93,7 @@ int nand_powered = 0; int nand_interleaved = 0; int nand_cached = 0; long nand_last_activity_value = -1; -static long nand_stack[32]; +static long nand_stack[DEFAULT_STACK_SIZE]; static struct mutex nand_mtx; static struct wakeup nand_wakeup; @@ -721,7 +722,10 @@ static void nand_thread(void) { if (TIME_AFTER(current_tick, nand_last_activity_value + HZ / 5) && nand_powered) + { + call_storage_idle_notifys(false); nand_power_down(); + } sleep(HZ / 10); } } |