1
0
Fork 0
forked from len0rd/rockbox
foxbox/firmware/drivers
Solomon Peachy 2743bde09b ATA: Increase delay to power-off when device doesn't support ATA SLEEP
The storage subsystem aggressively issues SLEEPNOW events when idle
and power off happened a fixed 2s later.  This turns out to not be
enough time for FC1307A (eg iFlash) adapters to flush outstanding writes.

So, when we detect a lack of PM support, increase the poweroff delay to
5 seconds to compensate for not being able to issue the ATA SLEEP command.

Hopefully this is enough time.  If not, we will have to re-disable PM
entirely when we detect these popular adapters.  Thankfully that is now
just an #ifdef away.

Change-Id: I4112b9acb965973d81f70483bd9d595461c7301c
2021-03-12 10:04:52 -05:00
..
audio xduoo_x3ii: Improvements in the meymappings! 2021-03-10 21:35:44 -05:00
rtc Fix more warnings. 2020-10-13 15:48:31 -04:00
tuner [1/4] Remove SH support and all archos targets 2020-07-24 21:20:13 +00:00
adc-as3514.c AMS: Return ascodec to interrupt-based I2C2 driver 2017-01-25 00:05:13 +01:00
ata.c ATA: Increase delay to power-off when device doesn't support ATA SLEEP 2021-03-12 10:04:52 -05:00
ata_flash.c Limit more variables to file scope 2015-01-11 21:40:51 +01:00
button.c Undo the hacks that allowed targets without LEFT/RIGHT (UP/DN) to build. 2020-10-08 20:30:08 -04:00
eeprom_24cxx.c
fat.c more DEBUG build fixes 2020-10-07 00:01:07 -05:00
generic_i2c.c
isp1362.c
isp1583.c Fix more red. 2020-10-13 19:45:03 -04:00
lcd-1bit-vert.c Whitespace cleanup on fb_viewport Rewrite 2020-10-26 12:38:22 -04:00
lcd-2bit-horz.c Whitespace cleanup on fb_viewport Rewrite 2020-10-26 12:38:22 -04:00
lcd-2bit-vert.c Whitespace cleanup on fb_viewport Rewrite 2020-10-26 12:38:22 -04:00
lcd-2bit-vi.c Whitespace cleanup on fb_viewport Rewrite 2020-10-26 12:38:22 -04:00
lcd-16bit-common.c lcd_framebuffer bugfixes, sanity checks 2020-10-31 01:11:30 -04:00
lcd-16bit-vert.c lcd_framebuffer bugfixes, sanity checks 2020-10-31 01:11:30 -04:00
lcd-16bit.c lcd_framebuffer bugfixes, sanity checks 2020-10-31 01:11:30 -04:00
lcd-24bit.c lcd_framebuffer bugfixes, sanity checks 2020-10-31 01:11:30 -04:00
lcd-bitmap-common.c lcd_framebuffer bugfixes, sanity checks 2020-10-31 01:11:30 -04:00
lcd-color-common.c lcd: Wrap anonymous union initializer in braces 2020-12-08 14:12:12 -05:00
lcd-memframe.c
lcd-remote-1bit-v.c
lcd-remote-2bit-vi.c
lcd-scroll.c LCD core move buf ptr and address look up function viewport struct 2020-10-26 12:28:48 -04:00
led.c YH92x: Use the led near the lcd as the ATA led, instead of shine all the time. 2014-06-18 18:06:17 +00:00
m5636.c
m66591.c m66591: Fix out-of-bounds array access 2020-05-12 21:52:40 +02:00
nand_id.c Add cleaned-up xDuoo X3 support 2018-07-28 10:56:31 -04:00
pca9555.c
pcf50605.c
pcf50606.c
pcf50635.c
qt1106.c
ramdisk.c Unify storage threads into one 2017-10-26 14:35:41 -04:00
rds.c RDS: Fix a few goofs in the unicode table 2017-04-21 19:47:25 -04:00
sd.c
serial.c
sw_i2c.c
synaptics-mep.c
touchpad.c touch devices: Disable touch on softlock. 2013-09-05 20:02:07 +02:00
touchscreen.c Introducing Targets iBasso DX50 & iBasso DX90 2014-09-18 18:19:01 +02:00
tsc200x.c
tsc2100.c