From 646d5f92ef966bfaae288becd8774953d3703f5f Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Tue, 20 Dec 2022 20:30:10 -0500 Subject: 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 --- firmware/export/ata.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'firmware/export') 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 */ /* Returns 1 if drive is solid-state */ int ata_disk_isssd(void); +/* Returns 1 if the drive can be powered off safely */ +int ata_disk_can_poweroff(void); + #ifdef HAVE_ATA_DMA /* Returns current DMA mode */ int ata_get_dma_mode(void); -- cgit v1.2.3