From nobody Sun Apr 28 21:25:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+77086+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+77086+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1624629984; cv=none; d=zohomail.com; s=zohoarc; b=SqMgiSzMH8ANpiQJ+qZS9JNqEzmiF82pTfK/ei542qJcFShheq+nNwijVZyjqLu7oyTfs2UEjHmqaNhELjRQ9otxXERzGyc8ZHOk8gCVwSIGBmXIkvhfG+KkCuN9DUhk1bU6Hz3wJeBmTsmW/Cr8+ssO3BLWCjLG99x5iRHEVBY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1624629984; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=8wQNu1TImKvNXSgOtk5PoEiZ+oHEhYl2HQCc+x2q2+k=; b=E+AjYSYXj+5Al9E22MN7RTt3WpbJFsRcL9qjAul8dXPNyt/Cn+GJNgWdI3LP78eTefOxvT+GpjGUkzcUk6cpl5uienXb/Sxllojz2A0XPr/wjn+CqdxryRzI9ekuebLqPaPSDKt5zcZ/puII2rCzrIqLfzSrfQm2+Tz87XLDJds= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+77086+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1624629984741846.4224840666034; Fri, 25 Jun 2021 07:06:24 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id bd7hYY1788612xEcTNMr1ckg; Fri, 25 Jun 2021 07:06:24 -0700 X-Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by mx.groups.io with SMTP id smtpd.web09.3180.1624595332210300397 for ; Thu, 24 Jun 2021 21:28:52 -0700 X-Received: by mail-pj1-f47.google.com with SMTP id g24so4734071pji.4 for ; Thu, 24 Jun 2021 21:28:52 -0700 (PDT) X-Gm-Message-State: PGrorKm36e3AgHje6yznN9dfx1787277AA= X-Google-Smtp-Source: ABdhPJx9uCBrddENhnZ9O/ajYjQInlI8yYE2ckDgQJDFN4GT7fa/qGVurD82WLLFpjVEU9+Nnz1xQQ== X-Received: by 2002:a17:90b:38c3:: with SMTP id nn3mr19003886pjb.92.1624595331785; Thu, 24 Jun 2021 21:28:51 -0700 (PDT) X-Received: from localhost.localdomain (122x208x150x49.ap122.ftth.ucom.ne.jp. [122.208.150.49]) by smtp.gmail.com with ESMTPSA id 125sm4211994pfg.52.2021.06.24.21.28.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Jun 2021 21:28:51 -0700 (PDT) From: "????" To: Ard Biesheuvel , Leif Lindholm Cc: sakamoto.kazuhiko@socionext.com, masami.hiramatsu@linaro.org, devel@edk2.groups.io Subject: [edk2-devel] [PATCH] Silicon/NXP/Pcf8563RealTimeClockLib: Clear Nanosecond field in GetTime Date: Fri, 25 Jun 2021 13:28:48 +0900 Message-Id: <162459532860.449807.8548404964981877808.stgit@localhost> User-Agent: StGit/0.19 MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,masami.hiramatsu@linaro.org Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1624629984; bh=04z0uGucxojfQDHUIJlpnnEUhoT17oul9aZSB3He+R8=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=dfStVShKa0OGYueTGypY/ED49ESfwR6uKt4DUj6v1jUuX0tZ3lACj+iTrvG4MVU+puL G0DNT+ivLMLiboi+yu6Yu0CBln4bv8v7Jlf9b/tQzULrafgZRAAKrlArxtQgeTfeTwHWx slODYF+J7CQQ8L5/CQhC2vK/jwwdFBZDLyw= X-ZohoMail-DKIM: pass (identity @groups.io) Clear unsupported Nanosecond field of the EFI_TIME data structure. Without this fix, date/time commands on UEFI shell fail to set because of the invaild parameter error. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Masami Hiramatsu Reported-by: Kazuhiko Sakamoto --- .../Pcf8563RealTimeClockLib.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Silicon/NXP/Library/Pcf8563RealTimeClockLib/Pcf8563RealTimeClo= ckLib.c b/Silicon/NXP/Library/Pcf8563RealTimeClockLib/Pcf8563RealTimeClockL= ib.c index 7310fecb39..b79ea89fea 100644 --- a/Silicon/NXP/Library/Pcf8563RealTimeClockLib/Pcf8563RealTimeClockLib.c +++ b/Silicon/NXP/Library/Pcf8563RealTimeClockLib/Pcf8563RealTimeClockLib.c @@ -117,6 +117,8 @@ LibGetTime ( return EFI_DEVICE_ERROR; } =20 + Time->Nanosecond =3D 0; + if ((DateTime.VL_seconds & PCF8563_CLOCK_INVALID) !=3D 0) { Time->Second =3D 0; Time->Minute =3D 0; -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#77086): https://edk2.groups.io/g/devel/message/77086 Mute This Topic: https://groups.io/mt/83784782/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-