summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--firmware/target/arm/s5l8702/ipod6g/storage_ata-ipod6g.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/s5l8702/ipod6g/storage_ata-ipod6g.c b/firmware/target/arm/s5l8702/ipod6g/storage_ata-ipod6g.c
index 5b0ab3e22a..3458e1918c 100644
--- a/firmware/target/arm/s5l8702/ipod6g/storage_ata-ipod6g.c
+++ b/firmware/target/arm/s5l8702/ipod6g/storage_ata-ipod6g.c
@@ -692,7 +692,6 @@ static int ata_power_up(void)
static void ata_power_down(void)
{
if (!ata_powered) return;
- ata_powered = false;
if (ceata)
{
memset(ceata_taskfile, 0, 16);
@@ -720,6 +719,7 @@ static void ata_power_down(void)
PCON(10) &= ~0xffff;
PCON(11) &= ~0xf;
ide_power_enable(false);
+ ata_powered = false;
}
static int ata_rw_chunk_internal(uint64_t sector, uint32_t cnt, void* buffer, bool write)