Improve ata_change_queue_depth() to have its behavior consistent for libsas managed devices with libata managed devices. Also add a couple of simple cleanups to use defined helper functions instead of open coding device flags checks. Damien Le Moal (3): ata: libata-sata: Improve ata_change_queue_depth() ata: libata-eh: Use ata_ncq_enabled() in ata_eh_speed_down() ata: libata-scsi: Use ata_ncq_supported in ata_scsi_dev_config() drivers/ata/libata-eh.c | 4 +--- drivers/ata/libata-sata.c | 25 +++++++++++++++---------- drivers/ata/libata-scsi.c | 2 +- 3 files changed, 17 insertions(+), 14 deletions(-) -- 2.40.1