From patchwork Thu Jan 8 18:41:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gabriele Mazzotta X-Patchwork-Id: 426834 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 6C30F140129 for ; Fri, 9 Jan 2015 05:47:53 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751633AbbAHSrw (ORCPT ); Thu, 8 Jan 2015 13:47:52 -0500 Received: from mail-we0-f172.google.com ([74.125.82.172]:47800 "EHLO mail-we0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750753AbbAHSrw (ORCPT ); Thu, 8 Jan 2015 13:47:52 -0500 X-Greylist: delayed 367 seconds by postgrey-1.27 at vger.kernel.org; Thu, 08 Jan 2015 13:47:51 EST Received: by mail-we0-f172.google.com with SMTP id k11so4072019wes.3 for ; Thu, 08 Jan 2015 10:47:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=Z6S55BUx439/1/lvn2haL9k8f4HcHNOK2p0s6kHhatE=; b=NkMozsKRVVzWY88LK6EhsXikfLW12jLF0JbmAV0mWrD00oCwn2PNSaoy7ntVdQJRnm 2hoWN33hrrCogMVeWmvuHOQKEYIp6V2zDfUzZPgdlDlu9DvPcGKpoJEfqFEscpHUEL/P upyl/n7JL3oNjQMTtxGYEnlN5qbbrW3Ib4yzaMTdD7Lev5vlCsFwjsSI3/KjUoiEzZNx /qdt+AmwLZ23EsQSvSSXo1te9DFiTF66hvH8Zh2EY8Nf5rieoa0HcSPOznGhuIldMno8 NMb3TQPGjddNY6Bi+Nk3MMrsGxzRnOLDN2CXkiQGoXKU48AssavmrafMXFqPo8BBkwah sPQA== X-Received: by 10.180.82.98 with SMTP id h2mr22791563wiy.7.1420742503965; Thu, 08 Jan 2015 10:41:43 -0800 (PST) Received: from xps13.homenet (2-235-140-64.ip228.fastwebnet.it. [2.235.140.64]) by mx.google.com with ESMTPSA id l9sm22859118wic.21.2015.01.08.10.41.42 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Jan 2015 10:41:43 -0800 (PST) From: Gabriele Mazzotta To: tj@kernel.org Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, Gabriele Mazzotta Subject: [PATCH] ahci: Use dev_info() to inform about the lack of Device Sleep support Date: Thu, 8 Jan 2015 19:41:34 +0100 Message-Id: <1420742494-5017-1-git-send-email-gabriele.mzt@gmail.com> X-Mailer: git-send-email 2.1.4 Sender: linux-ide-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org 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 --- drivers/ata/libahci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c index 97683e4..61a9c07 100644 --- a/drivers/ata/libahci.c +++ b/drivers/ata/libahci.c @@ -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; }