[PATCH v4 0/5] libsas cleanups

Damien Le Moal
2025-07-25T02:00:45Z

Martin, John,

While debugging an issue with the pm8001 driver, I generated these
cleanup patches. No functional changes overall.

These patches are against the 6.17/scsi-staging branch of the scsi tree.

Changes from v3:
- Corrected commit message of patch 2
- Added review tags

Changes from v2:
- Modified patch 2 to remove the unnecessary check using dev_is_ata()
- Added review tags

Changes from v1:
- Added patch 1
- Modified patch 2 to not inline sas_ata_wait_eh()
- Added review tags

Damien Le Moal (5):
scsi: libsas: Refactor dev_is_sata()
scsi: libsas: Simplify sas_ata_wait_eh()
scsi: libsas: Make sas_get_ata_info() static
scsi: libsas: Move declarations of internal functions to sas_internal.h
scsi: libsas: Use a bool for sas_deform_port() second argument

drivers/scsi/libsas/sas_ata.c | 10 +---
drivers/scsi/libsas/sas_discover.c | 2 +-
drivers/scsi/libsas/sas_internal.h | 78 ++++++++++++++++++++++++-
drivers/scsi/libsas/sas_phy.c | 6 +-
drivers/scsi/libsas/sas_port.c | 13 ++---
include/scsi/sas_ata.h | 91 +++++-------------------------
6 files changed, 101 insertions(+), 99 deletions(-)

base-commit: 3ea3a256ed81f95ab0f3281a0e234b01a9cae605
--
2.50.1