1
0
Fork 0
forked from len0rd/rockbox
foxbox/firmware
Solomon Peachy bd507fc7b4 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
2021-03-11 19:28:52 +00:00
..
asm Rename symbols of FiiO M3K Linux-based port 2021-02-27 23:53:28 +00:00
common rockbox: move firmware checksum algorithms into a common header 2020-11-22 05:12:04 +00:00
drivers ATA: When device doesn't support powermgmt, only gate ata sleep command. 2021-03-11 19:28:52 +00:00
export hosted: Consolidate the code that polls the battery charging status 2021-03-10 18:29:29 -05:00
include rockbox: move firmware checksum algorithms into a common header 2020-11-22 05:12:04 +00:00
kernel [3/4] Completely remove HWCODEC support 2020-07-24 21:20:13 +00:00
libc stdio compat layer for plugins 2017-12-23 20:54:56 -05:00
target xduoo_x3ii: Improvements in the meymappings! 2021-03-10 21:35:44 -05:00
usbstack usb_hid: switch Battery Strength to use feature reports 2021-03-10 04:09:46 -06:00
arabjoin.c
arabjoin.h
ata_idle_notify.c
backlight-sw-fading.c For backlights that have a wide control, support skipping steps. 2020-10-02 02:45:43 +00:00
backlight.c Fix reversal of "always/never" in "LCD setting > Sleep (After Backlight Off)" 2019-06-27 14:19:05 +02:00
bidi.c
buflib.c Buflib_init Bugfix Minsize 2020-07-15 13:29:21 +00:00
COPYING
core_alloc.c
debug.c [1/4] Remove SH support and all archos targets 2020-07-24 21:20:13 +00:00
eeprom_settings.c
enc_base.c
events.c
firmware.make fonts: Use '08-Rockfont' as FONT_SYSFIXED on targets with 128x64 screens 2020-08-31 13:32:24 -04:00
font.c Rename symbols of FiiO M3K Linux-based port 2021-02-27 23:53:28 +00:00
font_cache.c
general.c [3/4] Completely remove HWCODEC support 2020-07-24 21:20:13 +00:00
hangul.c
ifp_usb_serial.c
load_code.c
logf.c configure: Add prompt for USB Serial into the advanced mode 2020-11-18 08:50:05 -05:00
lru.c
panic.c [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
pcm.c pcm: Further cleanup of unused bits of the PCM ACPI: 2020-11-12 15:59:09 +00:00
pcm_mixer.c pcm_mixer: Fix an idle frame calculation bug introduced in 2e708c48c5 2020-10-24 02:00:50 +00:00
pcm_sampr.c pcm: Missed a file for the 192/176K playback. 2020-09-30 22:03:34 -04:00
pcm_sw_volume.c pcm: Get rid of pcm_play_pause() and associated APIs 2020-10-31 01:18:27 +00:00
powermgmt.c usb_hid: switch Battery Strength to use feature reports 2021-03-10 04:09:46 -06:00
profile.c
README
rolo.c rolo: use audio_hard_stop() instead of audio_stop() 2021-03-04 09:49:38 -05:00
rom.lds h300: add support for ROM image generation 2020-10-26 01:37:42 +00:00
screendump.c Agptek Rocker: Initial commit 2018-06-12 10:31:14 +02:00
scroll_engine.c ClipPlus BOOTLOADER DONT FIT! 2020-10-23 20:38:59 -04:00
sdmmc.c
sound.c [1/4] Remove SH support and all archos targets 2020-07-24 21:20:13 +00:00
SOURCES hosted: Consolidate the code that polls the battery charging status 2021-03-10 18:29:29 -05:00
storage.c FS#13154: Don't discard return code in storage_init() 2020-08-24 14:37:23 -04:00
system.c AMS: Return ascodec to interrupt-based I2C2 driver 2017-01-25 00:05:13 +01:00
timer.c Fix timer Agptek Rocker (other hosted players) 2019-10-17 21:19:00 +02:00
tuner.c [1/4] Remove SH support and all archos targets 2020-07-24 21:20:13 +00:00
usb.c USB: Reset poweroff timer for all USB events 2020-12-24 00:40:01 -05:00

See docs/README