From b59d6642e21d3b9a7c64824780742aaa2294fee3 Mon Sep 17 00:00:00 2001 From: Michael Sparmann Date: Mon, 21 Jun 2010 16:54:25 +0000 Subject: [PATCH] Fix ata_idle_notify on iPod Nano 2G git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27020 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/s5l8700/ata-nand-s5l8700.c | 1 - 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 #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 #include #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); } }