From patchwork Wed Nov 29 17:28:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 120032 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp3331930qgn; Wed, 29 Nov 2017 09:28:34 -0800 (PST) X-Google-Smtp-Source: AGs4zMaSu4Uh9E9pp5fVKIpUERdmC7AyHz+ASHiVmT2hIh2lG/rv/JFYtGRuc2b+vXkpC+kFM+NK X-Received: by 10.84.132.9 with SMTP id 9mr3641597ple.77.1511976514141; Wed, 29 Nov 2017 09:28:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511976514; cv=none; d=google.com; s=arc-20160816; b=LRDNYHY2xkAw1Uj7iUhT6MOYrlDJvUU9fXSAUGQwgMJDh+MUZJFu9mK1DB/E/4Rjnl U2IIAXhmqFUWQtTuhN7E20lhoDqzqvWJ4EJwBNRSHDGZ0SmY+9PFML3KHmiokqwa62wL 2gnJjC+DJ9rQSWj0iGAvJRbJ4phA2txgP9Kp7X7pRo/8mDFG07oAfOK3gS3r1EKWV5IC 55nPZXVdyaSqeq+lXhY2VT1P2yEkzc81jWV5BNOidV/7vDY/Qyr9EYl1nkaFZCbho/2q aMzdxr20p5J5TQGCv56rMx07gYM7zAL7T3GqMAkrs3qe6WY/AMoqp1KUWStgElHcFfC6 1+aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=ysvW7BmQOvkNuEGs2WHUUj12dvZA7ih5nrsW6M+mw5A=; b=pM41lKofiXA586xM3/tTFzLaaIF+Tsyx2EOllWEQ9xPT+yhobrA4XR+tTAIv2mQK/r rPcp6RsOomSdG7s6tE/W9OfJkIoMiegy6zFK+x1zG+t0+QXsbmy0axBclpfcd+F4weWI ZJgJvRe5aoVTA+is+ILz+vN3PkmDZbSihoq3ZSVHXWNpuPTFrGTh7R6FMO0FwAWLkA17 K1cJHEfWzdoNvVfESPXCWXYEiexh3XStA78r4ANkCqbZ1HS3imSD4gexXQDrCjtkPqFm wYyFteAZPe/JjNWIxv2EadATK1lsRzdzYLqcpWgl5uDavuRV+cq136qjWHCbhvU1b+Db tyCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=CgsqNms5; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id w7si1546165pgp.397.2017.11.29.09.28.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Nov 2017 09:28:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=CgsqNms5; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 1991020359E9C; Wed, 29 Nov 2017 09:24:08 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c09::244; helo=mail-wm0-x244.google.com; envelope-from=julien.grall@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm0-x244.google.com (mail-wm0-x244.google.com [IPv6:2a00:1450:400c:c09::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 3263F21B00DC4 for ; Wed, 29 Nov 2017 09:24:06 -0800 (PST) Received: by mail-wm0-x244.google.com with SMTP id r78so7909152wme.5 for ; Wed, 29 Nov 2017 09:28:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=FB/GkuSdLB969O880F/fYyIZGRBhGZpp92IR9EbEErw=; b=CgsqNms57KT3c1LG7AOIdaABNf/hsBtni4GN0ismMs16C0+zDt380tZ/AwqtU/dC5/ 3UM2dz1eGRkOLMcadPPi9kgZpdW0stiwNvIlQyHOJf5IIj9joaJjYP7zm38SQETix245 BI68yaMi6uCwc7EquVnbkycvfhmdQPjDEoheI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=FB/GkuSdLB969O880F/fYyIZGRBhGZpp92IR9EbEErw=; b=QIujneMKQY3C7D/1A1NrngkEKGK470iNcbverHSU8/tC+YEQVJAvXCE+HEnklS4+BT BmltLWXxXMxOg3JukO3GwswHlzt768seI/mvgLYyj7duQcpuZ42JhEKNx/40kwW+nzu0 dPIZSwrO6FhcQPKinmzzl4d/ZggqKyiAI1kJEbQwlOmgD3Lzap9BQYEpNFCuPwgVisr4 NaqsZ9E6+otZuVbto+cfoDWhnZaTMnUM7NI9qI+NIj9zUE6jAwRf1DNggvClPu1UR785 18OD7Sus4x928ANCqLvUao+FS3rt8P0Jx6Y10N2igwrgukOC84EOFZkfeTwJyom7T1XA MGIw== X-Gm-Message-State: AJaThX57EKJzk9cR5jSaZfKyXkoVrxXZrm4nKCuIXyqwzaULSz/kS+5y FRjHpB/aFVikjsP5Xalfaw42wNfea+E= X-Received: by 10.28.10.5 with SMTP id 5mr3060847wmk.74.1511976509280; Wed, 29 Nov 2017 09:28:29 -0800 (PST) Received: from e108454-lin.cambridge.arm.com ([2001:41d0:1:6c23::1]) by smtp.gmail.com with ESMTPSA id o80sm1782687wmg.6.2017.11.29.09.28.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Nov 2017 09:28:28 -0800 (PST) From: Julien Grall To: star.zeng@intel.com, eric.dong@intel.com, pankaj.bansal@nxp.com, lersek@redhat.com, leif.lindholm@linaro.org Date: Wed, 29 Nov 2017 17:28:21 +0000 Message-Id: <20171129172823.2906-2-julien.grall@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171129172823.2906-1-julien.grall@linaro.org> References: <20171129172823.2906-1-julien.grall@linaro.org> Subject: [edk2] [PATCH v3 1/3] MdeModulePkg/SerialDxe: Describe correctly EFI_DEVICE_ERROR for SetAttributes X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: edk2-devel@lists.01.org MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Per the UEFIv2.7 spec, EFI_DEVICE_ERROR is returned when the serial device is not functioning correctly. Update the description to avoid confusion. Contributed-under: Tianocore Contribution Agreement 1.1 Signed-off-by: Julien Grall Reviewed-by: Star Zeng --- Star, I found a prototype for SetAttributes in SerialIo.c as well and updated the description there. I decided to keep the Reviewed-by even with that change. Let me know whether it is fine for you. Changes in v3: - Modify description of EFI_DEVICE_ERROR above the prototypes for SetAttributes as well. - Add Star reviewed-by --- MdeModulePkg/Universal/SerialDxe/SerialIo.c | 4 ++-- MdePkg/Include/Protocol/SerialIo.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) -- 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/MdeModulePkg/Universal/SerialDxe/SerialIo.c b/MdeModulePkg/Universal/SerialDxe/SerialIo.c index 964d0329f4..19fc889c25 100644 --- a/MdeModulePkg/Universal/SerialDxe/SerialIo.c +++ b/MdeModulePkg/Universal/SerialDxe/SerialIo.c @@ -67,7 +67,7 @@ SerialReset ( stop bits. @retval EFI_SUCCESS The device was reset. - @retval EFI_DEVICE_ERROR The serial device could not be reset. + @retval EFI_DEVICE_ERROR The serial device is not functioning correctly. **/ EFI_STATUS @@ -265,7 +265,7 @@ SerialReset ( stop bits. @retval EFI_SUCCESS The device was reset. - @retval EFI_DEVICE_ERROR The serial device could not be reset. + @retval EFI_DEVICE_ERROR The serial device is not functioning correctly. **/ EFI_STATUS diff --git a/MdePkg/Include/Protocol/SerialIo.h b/MdePkg/Include/Protocol/SerialIo.h index 31cd46614e..84cb34364d 100644 --- a/MdePkg/Include/Protocol/SerialIo.h +++ b/MdePkg/Include/Protocol/SerialIo.h @@ -126,7 +126,7 @@ EFI_STATUS stop bits. @retval EFI_SUCCESS The device was reset. - @retval EFI_DEVICE_ERROR The serial device could not be reset. + @retval EFI_DEVICE_ERROR The serial device is not functioning correctly. **/ typedef