Skip to content

Commit

Permalink
libata: report link resume failure as KERN_WARNING instead of ERR
Browse files Browse the repository at this point in the history
Link resume failure in itself isn't an error condition and may happen
regularly depending on hardware configuration.  Reporting it as
KERN_ERR makes the condition unnecessarily prominent (e.g. reported
during boot).  Use KERN_WARNING instead.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: David Shaw <dshaw@jabberwocky.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Jul 23, 2011
1 parent 345347c commit 38941c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ata/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -3534,7 +3534,7 @@ int sata_link_resume(struct ata_link *link, const unsigned long *params,
} while ((scontrol & 0xf0f) != 0x300 && --tries);

if ((scontrol & 0xf0f) != 0x300) {
ata_link_err(link, "failed to resume link (SControl %X)\n",
ata_link_warn(link, "failed to resume link (SControl %X)\n",
scontrol);
return 0;
}
Expand Down

0 comments on commit 38941c9

Please sign in to comment.