summaryrefslogtreecommitdiff
path: root/firmware/target/mips
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2010-05-21 15:33:31 +0000
committerMichael Sevakis <jethead71@rockbox.org>2010-05-21 15:33:31 +0000
commitff25b3a20838241da597212a5faf9cb275420ab7 (patch)
tree37e52ccbf02f9fe136e724437e36a92fa16ce1cf /firmware/target/mips
parente24dd5ff98d63e81b4894b2ba06375f90105b373 (diff)
downloadrockbox-ff25b3a20838241da597212a5faf9cb275420ab7.tar.gz
rockbox-ff25b3a20838241da597212a5faf9cb275420ab7.zip
ata: do some threading-related corrections (some sync related where it matters). Make sure 'sleeping' is 'false' before the powerup sequence (throws-off powermgmt and it *is* about to woken again and powermgmt will need to compensate). Avoid looking at mutex flag directly; there's no tangible benefit I can discern and changes to the kernel that alter the meaning shouldn't be able to break anything. For that, in the jz sd driver, have sd_disk_is_active just return 'false' like all the other SD drivers do. If it *must* return this, it should implement it's own method but it seems to not matter.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26234 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/mips')
-rw-r--r--firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c b/firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c
index b558c4f87c..13fe1d69a9 100644
--- a/firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c
+++ b/firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c
@@ -1395,7 +1395,7 @@ void sd_sleepnow(void)
1395 1395
1396bool sd_disk_is_active(void) 1396bool sd_disk_is_active(void)
1397{ 1397{
1398 return sd_mtx.locked; 1398 return false;
1399} 1399}
1400 1400
1401int sd_soft_reset(void) 1401int sd_soft_reset(void)