diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2024-04-11 11:54:02 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-04-22 15:46:30 -0400 |
commit | 886060475e25d04b9eb1753dbbaea0db8b78a0d4 (patch) | |
tree | 472b29d2dbb994cbfa1addac945f9043796614c6 /apps/menus | |
parent | 6cbcde13b9eb10b50724f956ba5696fc82ed7cf4 (diff) | |
download | rockbox-886060475e25d04b9eb1753dbbaea0db8b78a0d4.tar.gz rockbox-886060475e25d04b9eb1753dbbaea0db8b78a0d4.zip |
ata: Heavily rework sleep and poweroff logic
* Use of ata_disk_can_poweroff() was inverted, resulting in SATA SSDs
getting powered off but leaving _everything_ else on, including spinning
rust!
* Replace the can_poweroff() heuristic with a test for the mandatory
ATA power mgmt feature flag. Notably, the CF->SD adapters don't claim
to support this!
* Eliminate duplicated tests in sleep code
* Wrap all poweroff-related code with HAVE_ATA_POWER_OFF
* Don't ever use SLEEP command, only STANDBY_IMMEDIATE
* Gate call to STANDBY_IMMEDIATE behind a can_poweroff() test
* Prefer FLUSH_CACHE_EXT to FLUSH_CACHE where available.
* Improve SSD detection heuristics to any of these:
* Explicltly identifies as SSD (covers newer CF and SATA)
* TRIM support
* CFA compliant AND (CF level 0 OR high speed support)
* Report SSD detection in debug menu
Change-Id: I7fcb83b6d6eabddc11c64326a573b08ab85412b5
Diffstat (limited to 'apps/menus')
0 files changed, 0 insertions, 0 deletions