ata: libata-eh: Use ata_ncq_enabled() in ata_eh_speed_down()
authorDamien Le Moal <dlemoal@kernel.org>
Sun, 4 Jun 2023 23:16:32 +0000 (08:16 +0900)
committerDamien Le Moal <dlemoal@kernel.org>
Mon, 5 Jun 2023 12:33:47 +0000 (21:33 +0900)
commit12980c1f2f8a926dd634e27c700014b3246a99ec
treed15293ff704acb0bf6cea28c439c9900d335c088
parent45623d33bfc055d8a9d53eded5dc9c1c977036ed
ata: libata-eh: Use ata_ncq_enabled() in ata_eh_speed_down()

In ata_eh_speed_down(), instead of hard-coding the test on the device
flags to detect if NCQ is supported and enabled, use ata_ncq_enabled().

Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: John Garry <john.g.garry@oracle.com>
drivers/ata/libata-eh.c