summaryrefslogtreecommitdiff
path: root/apps/lang
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2024-04-11 11:54:02 -0400
committerSolomon Peachy <pizza@shaftnet.org>2024-04-22 15:46:30 -0400
commit886060475e25d04b9eb1753dbbaea0db8b78a0d4 (patch)
tree472b29d2dbb994cbfa1addac945f9043796614c6 /apps/lang
parent6cbcde13b9eb10b50724f956ba5696fc82ed7cf4 (diff)
downloadrockbox-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/lang')
0 files changed, 0 insertions, 0 deletions