ata: libata-eh: Reduce "disable device" message verbosity
authorDamien Le Moal <dlemoal@kernel.org>
Tue, 29 Aug 2023 02:44:10 +0000 (11:44 +0900)
committerDamien Le Moal <dlemoal@kernel.org>
Tue, 3 Oct 2023 00:39:50 +0000 (09:39 +0900)
commit0fecb50891aa8731f39c65ab59c3f5d3cf2ce468
treee76977e4e45f2d448b055baf9498f3ece4de5206
parent7f95731c74d73d07958889a685bbfc13e8d82721
ata: libata-eh: Reduce "disable device" message verbosity

There is no point in warning about a device being disabled when we
expect it to be, that is, on suspend, shutdown or when detaching the
device.

Suppress the message "disable device" for these cases by introducing the
EH static function ata_eh_dev_disable() and by using it in
ata_eh_unload() and ata_eh_detach_dev(). ata_dev_disable() code is
modified to call this new function after printing the "disable device"
message.

Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Tested-by: Chia-Lin Kao (AceLan) <acelan.kao@canonical.com>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ata/libata-eh.c