[PATCH 0/2] Fix runtime suspended device resume

Damien Le Moal
2023-11-20T07:35:25Z

The first patch changes the use of the bool type back to the regular
unsigned:1 for the manage_xxx scsi device flags. This is marked as a fix
and CC-stable to avoid issues with later eventual fixes in this area.

The second patch addresses an issue with system resume with devices that
were runtime suspended. For ATA devices, this leads to a disk still
being reported as suspended while it is in fact spun up due to how ATA
resume is done (port reset).

Damien Le Moal (2):
scsi: Change scsi device boolean fields to single bit flags
scsi: sd: fix system start for ATA devices

drivers/ata/libata-scsi.c | 9 +++++++--
drivers/firewire/sbp2.c | 6 +++---
drivers/scsi/sd.c | 9 ++++++++-
include/scsi/scsi_device.h | 12 +++++++++---
4 files changed, 27 insertions(+), 9 deletions(-)

--
2.42.0