diff options
| author | Salomon Dushimirimana <[email protected]> | 2025-07-24 21:45:20 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2025-07-25 13:01:21 +0000 |
| commit | 8e48727c26c4d839ff9b4b73d1cae486bea7fe19 (patch) | |
| tree | 663689e9e7dfee875bb7d265a9ca034951be60f2 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h | |
| parent | scsi: arm64: dts: mediatek: mt8195: Add UFSHCI node (diff) | |
| download | kernel-8e48727c26c4d839ff9b4b73d1cae486bea7fe19.tar.gz kernel-8e48727c26c4d839ff9b4b73d1cae486bea7fe19.zip | |
scsi: sd: Make sd shutdown issue START STOP UNIT appropriately
Commit aa3998dbeb3a ("ata: libata-scsi: Disable scsi device
manage_system_start_stop") enabled libata EH to manage device power mode
trasitions for system suspend/resume and removed the flag from
ata_scsi_dev_config. However, since the sd_shutdown() function still
relies on the manage_system_start_stop flag, a spin-down command is not
issued to the disk with command "echo 1 > /sys/block/sdb/device/delete"
sd_shutdown() can be called for both system/runtime start stop
operations, so utilize the manage_run_time_start_stop flag set in the
ata_scsi_dev_config and issue a spin-down command during disk removal
when the system is running. This is in addition to when the system is
powering off and manage_shutdown flag is set. The
manage_system_start_stop flag will still be used for drivers that still
set the flag.
Fixes: aa3998dbeb3a ("ata: libata-scsi: Disable scsi device manage_system_start_stop")
Signed-off-by: Salomon Dushimirimana <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Tested-by: Damien Le Moal <[email protected]>
Reviewed-by: Damien Le Moal <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h')
0 files changed, 0 insertions, 0 deletions
