From nobody Fri Dec 27 03:50:32 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1504271072115508.68318961433056; Fri, 1 Sep 2017 06:04:32 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id B9F0A20958BCC; Fri, 1 Sep 2017 06:01:43 -0700 (PDT) Received: from mail-lf0-x22a.google.com (mail-lf0-x22a.google.com [IPv6:2a00:1450:4010:c07::22a]) (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 85C0D21EB88FB for ; Fri, 1 Sep 2017 06:01:41 -0700 (PDT) Received: by mail-lf0-x22a.google.com with SMTP id g18so621348lfl.2 for ; Fri, 01 Sep 2017 06:04:26 -0700 (PDT) Received: from enkidu.local (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id m129sm21754lfg.26.2017.09.01.06.04.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Sep 2017 06:04:23 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ux0tQxXJa20adEzd2t6BReGKCZ+zo58362UTv3xAmLI=; b=pRHqOxb1Nu+zywer6E+z0xfjLiEZMy272JcIfzV2GEbFm60kumYdrz4IZgBRuyq54+ 4yY+9iu1tYNoRLG72EbNmaYLr3mpa6F+g21082u/yRZnMflX/0Ra/ijjbDljeswr9M9f ESnZ+1ggLcUwfOXCczK1PYfQpJd2FMSRx03w619YSFB5P0LWDgXg/VSBu5ynjxX5fgEB C+StHFxGVYM6Ta+eMPkx9wNytdYPls5+mRw3JX1jzNt+vSChtSknd8GoFW6Cw2eNhRWv y+EOc9JiUObejsnw8WDBUw1p2kCevrzqRMDtuGrCvb5fjl29ZzkcYP1t2z9NXJ3jTNIJ KjZA== 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:mime-version:content-transfer-encoding; bh=Ux0tQxXJa20adEzd2t6BReGKCZ+zo58362UTv3xAmLI=; b=pX1pvxfngq/BbZWI7NUcw3RhW2hWU7EV7xMCmGC6sJzXa1OU3Mk/CE3guP3595mfof HeuHo3aInZpI3/zCuNlft/xTx3od46A6oL6/unmYPhUM64LM1i4owYyG5wjSBPfg3k88 Eyyy3L+zv+QVERLXTB1+mdlxUNWdl8MJg736XJv3+vZc+BszSAuRJc2mYaTo5qbVimDK xZJyHaN+nSdRA5dnky17KLvjXbrMR8WzWxDRfrQ6EiA3a3GcDO6IaS7EzUP25GTUtIPN KUzKUJNHnlRMzk8f86V0yXtsup+buuOF957ppUiCu86VeKWl6JROXBGLdxvPJVtrbiNn d8kw== X-Gm-Message-State: AHPjjUjXU1EbKWhth755oTakiwcAqPgs7r8Fh7hhfC9VP4TjKKtCpURC /j6HGP79figAGyMkQHd3ww== X-Google-Smtp-Source: ADKCNb4q+xfSFVr4mvUaM9SkxZSMw46gvYcQNV3qrlkzsahtI8iiVp1PaUw/KeSMBSjTaPI0xvBQaA== X-Received: by 10.25.225.155 with SMTP id l27mr756987lfk.1.1504271064106; Fri, 01 Sep 2017 06:04:24 -0700 (PDT) From: Marcin Wojtas To: edk2-devel@lists.01.org Date: Fri, 1 Sep 2017 15:08:14 +0200 Message-Id: <1504271303-1782-3-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1504271303-1782-1-git-send-email-mw@semihalf.com> References: <1504271303-1782-1-git-send-email-mw@semihalf.com> MIME-Version: 1.0 Subject: [edk2] [platforms: PATCH 02/11] Drivers/Spi/MvSpiDxe: Log and return correct error 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: jinghua@marvell.com, ard.biesheuvel@linaro.org, agraf@suse.de, leif.lindholm@linaro.org, nadavh@marvell.com, neta@marvell.com, kostap@marvell.com, =?UTF-8?q?Piotr=20Kr=C3=B3l?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 From: Piotr Kr=C3=B3l Make log information clear where it came from and return correct code to be interpreted by caller. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Piotr Kr=C3=B3l Signed-off-by: Marcin Wojtas --- Platform/Marvell/Drivers/Spi/MvSpiDxe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Platform/Marvell/Drivers/Spi/MvSpiDxe.c b/Platform/Marvell/Dri= vers/Spi/MvSpiDxe.c index aab20fc..0872f61 100755 --- a/Platform/Marvell/Drivers/Spi/MvSpiDxe.c +++ b/Platform/Marvell/Drivers/Spi/MvSpiDxe.c @@ -240,7 +240,8 @@ MvSpiTransfer ( } =20 if (Iterator >=3D SPI_TIMEOUT) { - DEBUG ((DEBUG_ERROR, "Timeout\n")); + DEBUG ((DEBUG_ERROR, "EfiSpiTransfer: Timeout\n")); + return EFI_TIMEOUT; } } =20 --=20 1.8.3.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel