Commit 0fecb50
committed
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>1 parent 7f95731 commit 0fecb50
1 file changed
+19
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
497 | 509 | | |
498 | 510 | | |
499 | 511 | | |
| |||
517 | 529 | | |
518 | 530 | | |
519 | 531 | | |
520 | | - | |
521 | | - | |
| 532 | + | |
| 533 | + | |
522 | 534 | | |
523 | 535 | | |
524 | 536 | | |
| |||
1211 | 1223 | | |
1212 | 1224 | | |
1213 | 1225 | | |
1214 | | - | |
1215 | | - | |
1216 | | - | |
1217 | 1226 | | |
1218 | | - | |
1219 | | - | |
1220 | | - | |
1221 | | - | |
| 1227 | + | |
1222 | 1228 | | |
1223 | 1229 | | |
1224 | 1230 | | |
| |||
1240 | 1246 | | |
1241 | 1247 | | |
1242 | 1248 | | |
1243 | | - | |
| 1249 | + | |
1244 | 1250 | | |
1245 | | - | |
| 1251 | + | |
1246 | 1252 | | |
1247 | | - | |
1248 | | - | |
| 1253 | + | |
| 1254 | + | |
1249 | 1255 | | |
1250 | 1256 | | |
1251 | 1257 | | |
| |||
0 commit comments