diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2022-12-20 20:30:10 -0500 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2022-12-20 20:38:43 -0500 |
commit | 646d5f92ef966bfaae288becd8774953d3703f5f (patch) | |
tree | ae1481805d3269bcb180ba316e2be630f627a5d2 /firmware/export/ata.h | |
parent | 1387d6480e8c2621a09f472cad29c6ca16bc65e6 (diff) | |
download | rockbox-646d5f92ef966bfaae288becd8774953d3703f5f.tar.gz rockbox-646d5f92ef966bfaae288becd8774953d3703f5f.zip |
ata: Prevent powering-off ATA hardwre if it reports as mSATA or m.2
As those form factors are typically not runtime removable and as such
expect to always being powered up.
This is an experimental change, and we might revert it if it doens't help
Change-Id: I61187f297866f64589a546352828a0ff8169fa30
Diffstat (limited to 'firmware/export/ata.h')
-rw-r--r-- | firmware/export/ata.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/export/ata.h b/firmware/export/ata.h index 7c5fd3a8d0..7c7c60e898 100644 --- a/firmware/export/ata.h +++ b/firmware/export/ata.h | |||
@@ -168,6 +168,9 @@ int ata_spinup_time(void); /* ticks */ | |||
168 | /* Returns 1 if drive is solid-state */ | 168 | /* Returns 1 if drive is solid-state */ |
169 | int ata_disk_isssd(void); | 169 | int ata_disk_isssd(void); |
170 | 170 | ||
171 | /* Returns 1 if the drive can be powered off safely */ | ||
172 | int ata_disk_can_poweroff(void); | ||
173 | |||
171 | #ifdef HAVE_ATA_DMA | 174 | #ifdef HAVE_ATA_DMA |
172 | /* Returns current DMA mode */ | 175 | /* Returns current DMA mode */ |
173 | int ata_get_dma_mode(void); | 176 | int ata_get_dma_mode(void); |