From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 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) 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) 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) From: Marcin Wojtas To: edk2-devel@lists.01.org Cc: leif.lindholm@linaro.org, ard.biesheuvel@linaro.org, nadavh@marvell.com, neta@marvell.com, kostap@marvell.com, jinghua@marvell.com, agraf@suse.de, mw@semihalf.com, jsd@semihalf.com, =?UTF-8?q?Piotr=20Kr=C3=B3l?= 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: [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: , X-List-Received-Date: Mon, 25 Sep 2017 01:42:54 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Piotr Król 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ól 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/Drivers/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 ( } if (Iterator >= SPI_TIMEOUT) { - DEBUG ((DEBUG_ERROR, "Timeout\n")); + DEBUG ((DEBUG_ERROR, "%s: Timeout\n", __FUNCTION__)); + return EFI_TIMEOUT; } } -- 1.8.3.1