From nobody Thu Dec 26 13:16:45 2024 Delivered-To: importer@patchew.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 1506303969791236.4111271686685; Sun, 24 Sep 2017 18:46:09 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 3815D21E2BE37; Sun, 24 Sep 2017 18:42:56 -0700 (PDT) Received: from mail-wr0-x231.google.com (mail-wr0-x231.google.com [IPv6:2a00:1450:400c:c0c::231]) (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 526D920945B97 for ; Sun, 24 Sep 2017 18:42:54 -0700 (PDT) Received: by mail-wr0-x231.google.com with SMTP id o42so5214131wrb.3 for ; Sun, 24 Sep 2017 18:46:05 -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 f16sm809520lfe.66.2017.09.24.18.46.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Sep 2017 18:46:02 -0700 (PDT) X-Original-To: edk2-devel@lists.01.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; Received-SPF: None (no SPF record) identity=mailfrom; client-ip=2a00:1450:400c:c0c::231; helo=mail-wr0-x231.google.com; envelope-from=mw@semihalf.com; receiver=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=vxVLv+gZbRrpa9WIppz1hoh0fkwXNW8TVs3K8zPq9ns=; b=s7J5mXr7nUan2NeaU15Smbm0ZJHL7lEj5KaP0xN59omRMQdDTUXtf/EqDXdM5fPobI 3UE9f0ywbVWbr17OLwlv00C1Zq4tcP7MXgtyr157jwIRybwmjuC30hCZxOdAWcu6h4Aw YYLnI9E7vNEJ65fGxLmUzvcxix2qV9mQwaFjwC5C+NmQ/BBwLt4WVS9KFq0QKYBqpbcL 15Te12UqiCUnMvWiba+ZRkgv5Zl36xDX7ZgsUZvh0ii1kk/q8nOCZ2XRzoi9YnzG4fTj GQeaKkKMN3UFfwVQzbppusnV8gcg99N2l6hbp/toJyqLZm75fK3u3FQOGha+7p1C2Ot4 CgsA== 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=vxVLv+gZbRrpa9WIppz1hoh0fkwXNW8TVs3K8zPq9ns=; b=JLvSwmn+z/YcQs4IORPa3+7w+/1e8/LNkai3hjWch+enGrEDL/wzxr6JM+OODG3r7Y igYDkuqLAEOT9Q9qSRzx+PsOSu/rNIVFJ21PCE1J2kXbtpGb5qzn7W7AiJaKrGyihnTJ KvitGswhCM5iuUWbr9AJNqaYOkfxKQHzoAx5+5MQjLDW+/PlMp/91+AaiFfHx5leytGj WmSl7PWF0YGSrKMq2BGsyd4rEOJwuJ1iISPveWG6TVygPbZd42ahxnVcen44zM+sWk6E tKiMZishmR65iLmqhzwzvOB2pOn6czLrtLhAIRp2ro22iZ+DQmuRPyeHDjupzYlwGGkR jvNQ== X-Gm-Message-State: AHPjjUinuZOc/G6zJR0rUboWxlUHdslszh++iVKV/Gf4GA+IkPvO0L9i xtaxo8o1xE1NY1DRhCa3+CEGQpkXZ9s= X-Google-Smtp-Source: AOwi7QBHtOYyUtOYBQjXuC4lS7UydT2ZB+1YrAl1fYxYF8GWTaPSGRLTjZHiiQ9ZNmFqWoxYi4CUGA== X-Received: by 10.25.72.16 with SMTP id v16mr1600106lfa.72.1506303963425; Sun, 24 Sep 2017 18:46:03 -0700 (PDT) From: Marcin Wojtas To: edk2-devel@lists.01.org Date: Mon, 25 Sep 2017 03:51:51 +0200 Message-Id: <1506304319-8620-3-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1506304319-8620-1-git-send-email-mw@semihalf.com> References: <1506304319-8620-1-git-send-email-mw@semihalf.com> MIME-Version: 1.0 Subject: [edk2] [platforms: PATCH 02/10] Marvell/Drivers: 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..0c6b624 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, "%s: Timeout\n", __FUNCTION__)); + 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