1
0
Fork 0
forked from len0rd/rockbox
foxbox/firmware/target
Solomon Peachy e829ea9a5e ata: Rework how flushing, sleeping, and power off interacts
* FLUSH_EXT is used if featureflag is set and we are using LBA48
   (unconditionally used for CE-ATA on ipod6g)
 * FLUSH is used if featureflag is set (ATA6+) or if device claims to be ATA5+

 * Rename ata_disk_can_power_off() to ata_disk_can_sleep() as that is
   what it actually tests for.  Only use it to gate issuing the
   STANDBY IMMEDIATE command.
 * Restore behavior of ata_disk_is_active() to return 1 if drive is
   "spinning" or powered up.
 * Allow poweroff if drive claims PM support OR we are able to issue
   FLUSH/FLUSH_EXT commands.

 * Added ata_flush() to explicitly trigger a flush operation, and hook it
   up to storage_flush() in the device shutdown path. (Flushes were
   only previously used in the storage device power management path)

 * After issuing all settings, re-issue IDENTIFY_DEVICE to make sure
   it reflects everything we've enabled.

 * Update manual section on Flash/SSD mods.

Change-Id: I6770a54ef3a87f4c47120bcb96c944a6652f1bf4
2024-10-31 12:51:54 -04:00
..
arm ata: Rework how flushing, sleeping, and power off interacts 2024-10-31 12:51:54 -04:00
coldfire coldfire: Silence a warning generated by GCC >= 9 2024-10-12 13:54:22 -04:00
hosted sdl: Remove SDL_RENDERER_ACCELERATED flag 2024-10-11 22:57:37 -04:00
mips erosqnative: Give erosqnative_v3 its own target ID and modelname 2024-09-08 12:29:03 -04:00