libata: Make ata_dev_set_mode() less verbose
authorDamien Le Moal <damien.lemoal@wdc.com>
Wed, 9 May 2018 00:28:10 +0000 (09:28 +0900)
committerTejun Heo <tj@kernel.org>
Thu, 10 May 2018 18:43:20 +0000 (11:43 -0700)
commit07b9b6d6e1bb823e278d1afb255ad057cf53960b
treef0d007b26fc8443385f833f82f5f96a7407e4d65
parent54fb131b325c663b368b2be150f6875124df1d76
libata: Make ata_dev_set_mode() less verbose

For a successful setting of the device transfer speed mode in
ata_dev_set_mode(), do not print the message
"ataX.XX: configured for xxx" if the EH context has the quiet flag set,
unless the device port is being reset.

This preserves the output of the message during device scan but removes
it in the case of a simple device revalidation such as trigerred by
enabling the NCQ I/O priority feature of the device
e.g. echo 1 > /sys/block/sdxx/device/ncq_iprio_enable

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/libata-core.c