From patchwork Tue May 16 10:12:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ivanhu X-Patchwork-Id: 1781879 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=fwts-devel-bounces@lists.ubuntu.com; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=IF8Ow+fb; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QLBrH6qWDz20dX for ; Tue, 16 May 2023 20:12:46 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1pyrfY-0003XY-Nh; Tue, 16 May 2023 10:12:36 +0000 Received: from smtp-relay-canonical-1.internal ([10.131.114.174] helo=smtp-relay-canonical-1.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1pyrfX-0003XR-D2 for fwts-devel@lists.ubuntu.com; Tue, 16 May 2023 10:12:35 +0000 Received: from canonical.com (unknown [106.104.136.95]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-1.canonical.com (Postfix) with ESMTPSA id 4950E42AC8 for ; Tue, 16 May 2023 10:12:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1684231952; bh=aElKhopB/rOIY9N4jAxxX40Ka3wFgASekqrEHGztXXo=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=IF8Ow+fbBV3321Bk0jiyxIKNQdJ43XJJdY04yTkZqyabqYXVr6GzQGFaDOGFlKccz 9peZbVR6c+gsDmlb6Sf6cb35BWmBF4mxoAb+EqOzr1tudCTLMa9TVfmtQqDkuGDket YA6q+xgadMvo9+ITPzO3Am8sITvT59Esbc9+nviWNAe2b9h4rBjd8V9JeIsv29H30+ E4UxcHy+NDUxWw8oAuwaYiLYyEv2nrLB92Mcck/NvuJ12PqSQHjVsQeERXrAysW8xL VxtDVE2PmZUI3Twex920B0OWXpyBLI+xa1FOx45NAvZbcFUg/4M3yUW1jisZhwOjA0 +uKmmC+uScBvA== From: Ivan Hu To: fwts-devel@lists.ubuntu.com Subject: [PATCH] s3: fix the display time of resume for Timekeeping suspended string missing Date: Tue, 16 May 2023 18:12:06 +0800 Message-Id: <20230516101206.53913-1-ivan.hu@canonical.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: "fwts-devel" Buglink: https://bugs.launchpad.net/fwts/+bug/2019727 Signed-off-by: Ivan Hu --- src/acpi/s3/s3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/acpi/s3/s3.c b/src/acpi/s3/s3.c index 9afae102..ba009426 100644 --- a/src/acpi/s3/s3.c +++ b/src/acpi/s3/s3.c @@ -510,7 +510,7 @@ static int s3_scan_times( s3_suspend_finish = ts; continue; } - if (strstr(txt, "Timekeeping suspended")) { + if (strstr(txt, "Timekeeping suspended") || strstr(txt, "resume from suspend-to-idle")) { s3_resume_start = ts; if (s3_suspend_finish < 0.0) s3_suspend_finish = previous_ts;