From patchwork Thu Mar 1 19:40:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Damien Le Moal X-Patchwork-Id: 10252329 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7360260365 for ; Thu, 1 Mar 2018 19:40:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 637CB28521 for ; Thu, 1 Mar 2018 19:40:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 581DF28534; Thu, 1 Mar 2018 19:40:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0539628521 for ; Thu, 1 Mar 2018 19:40:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161387AbeCATkg (ORCPT ); Thu, 1 Mar 2018 14:40:36 -0500 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:18668 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161362AbeCATkd (ORCPT ); Thu, 1 Mar 2018 14:40:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1519933234; x=1551469234; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=ykTRS0w+RyQ8G0dktNPjYGZo5FOfnIFNKLOjqcP5zUQ=; b=qLQaf7dEPwwJ5EL04l8tD6jsndIaeQnYvQOR3KlV0w53PEjPEJY8tYln 8O+SVe0WZVTHoK5LpI3xXSH8X0rPeF08q+nlzwBkWS7qcS6oKIpapeXEQ CHOuwPb6WIRK+0rIRYYosJnYAS89kd0/3Sb5s0TXP80vuWOB0Tuuzu4aB MCor18KPOIywFH631amqGEfP+dHoqrHtUfLv/S4N0po5cx/N4mQG0Jd+s Jc6m4qiTUyMoz68n8hWgXANVwv3F9XQO/7j/Ib2e3WVtJbXDFMl2z2AX4 MCdIzo14T9/oQ42iiW4sdI0UGunBZJu/ph8kulwgrgXDQSGe8xnFT+Dsu g==; X-IronPort-AV: E=Sophos;i="5.47,409,1515427200"; d="scan'208";a="72555674" Received: from uls-op-cesaip02.wdc.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 02 Mar 2018 03:40:34 +0800 Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep02.wdc.com with ESMTP; 01 Mar 2018 11:33:56 -0800 Received: from washi.fujisawa.hgst.com ([10.149.53.254]) by uls-op-cesaip01.wdc.com with ESMTP; 01 Mar 2018 11:40:33 -0800 From: Damien Le Moal To: linux-scsi@vger.kernel.org, "Martin K . Petersen" , linux-ata@vger.kernel.org, Tejun Heo Cc: Bart Van Assche , Hannes Reinecke Subject: [PATCH 6/6] libata: Be quiet when asked to Date: Fri, 2 Mar 2018 04:40:24 +0900 Message-Id: <20180301194024.25532-7-damien.lemoal@wdc.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180301194024.25532-1-damien.lemoal@wdc.com> References: <20180301194024.25532-1-damien.lemoal@wdc.com> Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP For a successful setting of the device transfer speed mode in ata_dev_set_mode(), do not print the message "ataX.XX: configured for xxx" if the EH context has the quiet flag set. Signed-off-by: Damien Le Moal Reviewed-by: Hannes Reinecke --- drivers/ata/libata-core.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index 3c09122bf038..258afc2e8efd 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -3573,9 +3573,10 @@ static int ata_dev_set_mode(struct ata_device *dev) DPRINTK("xfer_shift=%u, xfer_mode=0x%x\n", dev->xfer_shift, (int)dev->xfer_mode); - ata_dev_info(dev, "configured for %s%s\n", - ata_mode_string(ata_xfer_mode2mask(dev->xfer_mode)), - dev_err_whine); + if (!(ehc->i.flags & ATA_EHI_QUIET)) + ata_dev_info(dev, "configured for %s%s\n", + ata_mode_string(ata_xfer_mode2mask(dev->xfer_mode)), + dev_err_whine); return 0;