summaryrefslogtreecommitdiffstats
path: root/firmware/target/sh
diff options
context:
space:
mode:
authorTorne Wuff <torne@wolfpuppy.org.uk>2010-04-07 20:01:21 +0000
committerTorne Wuff <torne@wolfpuppy.org.uk>2010-04-07 20:01:21 +0000
commit62321ed0bd7d8d5879a9caad3d8f642dbe876033 (patch)
treee569e1e2ec72f7300ddf956831a21cef427cfc9b /firmware/target/sh
parentb3d44fcb57173b7995bf67a88aa24aa447f74f52 (diff)
downloadrockbox-62321ed0bd7d8d5879a9caad3d8f642dbe876033.tar.gz
rockbox-62321ed0bd7d8d5879a9caad3d8f642dbe876033.tar.bz2
rockbox-62321ed0bd7d8d5879a9caad3d8f642dbe876033.zip
Make ATA code not bother to retry requests that return IDNF (specified sector not valid).
There's no point retrying these requests for five seconds, the sector number isn't going to get any more valid. It interferes with being able to detect broken drives like the 5.5G 80GB iPod's. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25525 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/sh')
-rw-r--r--firmware/target/sh/archos/ata-target.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/target/sh/archos/ata-target.h b/firmware/target/sh/archos/ata-target.h
index 893737048e..aef025e1df 100644
--- a/firmware/target/sh/archos/ata-target.h
+++ b/firmware/target/sh/archos/ata-target.h
@@ -46,6 +46,7 @@
#define STATUS_ERR 0x01
#define ERROR_ABRT 0x04
+#define ERROR_IDNF 0x10
#define WRITE_PATTERN1 0xa5
#define WRITE_PATTERN2 0x5a