Skip to content

Commit

Permalink
ahci: Use dev_info() to inform about the lack of Device Sleep support
Browse files Browse the repository at this point in the history
According to the Serial ATA AHCI specification, Device Sleep is an
optional feature and as such no errors should be printed if it's
missing. Keep informing users, but use dev_info() instead of dev_err().

Signed-off-by: Gabriele Mazzotta <gabriele.mzt@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
  • Loading branch information
Gabriele Mazzotta authored and Tejun Heo committed Jan 9, 2015
1 parent e61f7d1 commit 95bbbe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ata/libahci.c
Original file line number Diff line number Diff line change
Expand Up @@ -2003,7 +2003,7 @@ static void ahci_set_aggressive_devslp(struct ata_port *ap, bool sleep)

devslp = readl(port_mmio + PORT_DEVSLP);
if (!(devslp & PORT_DEVSLP_DSP)) {
dev_err(ap->host->dev, "port does not support device sleep\n");
dev_info(ap->host->dev, "port does not support device sleep\n");
return;
}

Expand Down

0 comments on commit 95bbbe9

Please sign in to comment.