diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2021-03-04 17:47:01 -0500 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2021-03-11 19:28:52 +0000 |
commit | bd507fc7b4e3c6145e3d4e17747f6d77a34427f4 (patch) | |
tree | 33f3b30792b01912b2b017a02ae7c50e8f59df15 /apps | |
parent | eb9f05f835dab48f8d5de4ac364c6a46670cc61c (diff) | |
download | rockbox-bd507fc7b4e3c6145e3d4e17747f6d77a34427f4.tar.gz rockbox-bd507fc7b4e3c6145e3d4e17747f6d77a34427f4.zip |
ATA: When device doesn't support powermgmt, only gate ata sleep command.
The FC1307A ATA->SD chipset (used by the common iFlash adapters)
doesn't support mandatory ATA power management commands, leading to
massive data corruption if they were issued.
A workaround was identified (54629073ae) that basically disabled all of
rockbox's power management code for these adapters, which extends well
beyond the specific ATA commands issued.
This patch moves the gating test to the issuance of the actual SLEEP,
so that the rest of rockbox's PM code can function as intended. This
allows the device to get powered down when idle, yielding potentially
significant improvements in battery life.
Change-Id: Ia13e2405243fe5efe6f68c3a549ab4933567790b
Diffstat (limited to 'apps')
0 files changed, 0 insertions, 0 deletions