ata: do some threading-related corrections (some sync related where it matters)....
commitd83ff997cafc28637bf0cb3ec2a4b49fae6366bd
authorjethead71 <jethead71@a1c6a512-1295-4272-9138-f99709370657>
Fri, 21 May 2010 15:33:31 +0000 (21 15:33 +0000)
committerjethead71 <jethead71@a1c6a512-1295-4272-9138-f99709370657>
Fri, 21 May 2010 15:33:31 +0000 (21 15:33 +0000)
tree37e52ccbf02f9fe136e724437e36a92fa16ce1cf
parent1da91241ffc5898c79f23953521c1d11c3bfccda
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
firmware/drivers/ata.c
firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c