diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2023-10-27 13:38:59 -1000 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2023-10-27 13:38:59 -1000 |
commit | 832328c9f8aa4b41423f29a53ba7080eb7214976 (patch) | |
tree | ccdd094d53ff1bbb103ad8b3a6eed62e9e7d85eb /include | |
parent | a78a67f3019c687d06dee8cebfb7b7cee7bf0216 (diff) | |
parent | 24eca2dce0f8d19db808c972b0281298d0bafe99 (diff) | |
download | linux-stable-832328c9f8aa4b41423f29a53ba7080eb7214976.tar.gz linux-stable-832328c9f8aa4b41423f29a53ba7080eb7214976.tar.bz2 linux-stable-832328c9f8aa4b41423f29a53ba7080eb7214976.zip |
Merge tag 'ata-6.6-final' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata
Pull ATA fix from Damien Le Moal:
"A single patch to fix a regression introduced by the recent
suspend/resume fixes.
The regression is that ATA disks are not stopped on system shutdown,
which is not recommended and increases the disks SMART counters for
unclean power off events.
This patch fixes this by refining the recent rework of the scsi device
manage_xxx flags"
* tag 'ata-6.6-final' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata:
scsi: sd: Introduce manage_shutdown device flag
Diffstat (limited to 'include')
-rw-r--r-- | include/scsi/scsi_device.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h index fd41fdac0a8e..65e49fae8da7 100644 --- a/include/scsi/scsi_device.h +++ b/include/scsi/scsi_device.h @@ -162,8 +162,24 @@ struct scsi_device { * core. */ unsigned int eh_timeout; /* Error handling timeout */ - bool manage_system_start_stop; /* Let HLD (sd) manage system start/stop */ - bool manage_runtime_start_stop; /* Let HLD (sd) manage runtime start/stop */ + /* + * If true, let the high-level device driver (sd) manage the device + * power state for system suspend/resume (suspend to RAM and + * hibernation) operations. + */ + bool manage_system_start_stop; + + /* + * If true, let the high-level device driver (sd) manage the device + * power state for runtime device suspand and resume operations. + */ + bool manage_runtime_start_stop; + + /* + * If true, let the high-level device driver (sd) manage the device + * power state for system shutdown (power off) operations. + */ + bool manage_shutdown; unsigned removable:1; unsigned changed:1; /* Data invalid due to media change */ |