From patchwork Fri Aug 28 13:50:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?=C5=81ukasz_Majewski?= X-Patchwork-Id: 511900 X-Patchwork-Delegate: panto@antoniou-consulting.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id E86671401AB for ; Fri, 28 Aug 2015 23:50:57 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5EA704B6A2; Fri, 28 Aug 2015 15:50:53 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Npo5Stutynip; Fri, 28 Aug 2015 15:50:53 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2FA3F4B6E6; Fri, 28 Aug 2015 15:50:49 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5BBBE4B6A2 for ; Fri, 28 Aug 2015 15:50:43 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ezYcb-tHaaxX for ; Fri, 28 Aug 2015 15:50:43 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by theia.denx.de (Postfix) with ESMTPS id DAC2C4B69E for ; Fri, 28 Aug 2015 15:50:40 +0200 (CEST) Received: from epcpsbgm1new.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NTS03025P48PH00@mailout2.samsung.com> for u-boot@lists.denx.de; Fri, 28 Aug 2015 22:50:35 +0900 (KST) X-AuditID: cbfee61a-f79a06d000005c6f-27-55e0672a0c9e Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id 06.15.23663.A2760E55; Fri, 28 Aug 2015 22:50:35 +0900 (KST) Received: from mcdsrvbld02.digital.local ([106.116.37.23]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NTS006RQP40T730@mmp1.samsung.com>; Fri, 28 Aug 2015 22:50:34 +0900 (KST) From: Lukasz Majewski To: u-boot@lists.denx.de Date: Fri, 28 Aug 2015 15:50:21 +0200 Message-id: <1440769821-24005-2-git-send-email-l.majewski@samsung.com> X-Mailer: git-send-email 1.7.10.4 In-reply-to: <1440769821-24005-1-git-send-email-l.majewski@samsung.com> References: <1440769821-24005-1-git-send-email-l.majewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprALMWRmVeSWpSXmKPExsVy+t9jAV3t9AehBodfMVm8ecRt8ebhZkaL HZdvsFh827KN0WLqpM3sFm/3drI7sHnMbrjI4vHqwCp2j7N3djB6rJv2ltmjb8sqxgDWKC6b lNSczLLUIn27BK6M2XsUC5axVZw9+YS9gfE/SxcjJ4eEgIlEx6Y2RghbTOLCvfVsXYxcHEIC Sxklzi39zQ7h/GGU+LzpGTNIFZuAnsTnu0+ZQGwRAQmJX/1XGUGKmAWOMkqsXNcJlODgEBbw k9jwWg2khkVAVeLBgVtg9bwCbhKt1y9DbVOU6H42gQ3E5hRwl1j6+B8rSKsQUM33i/wTGHkX MDKsYpRILUguKE5KzzXMSy3XK07MLS7NS9dLzs/dxAgOp2dSOxgP7nI/xCjAwajEw2ux4X6o EGtiWXFl7iFGCQ5mJRHeEKEHoUK8KYmVValF+fFFpTmpxYcYpTlYlMR5ZTdsDhUSSE8sSc1O TS1ILYLJMnFwSjUwHleM5C6b0Zm8SnWSjr74iTTvswwKZ+b2PWa8+l7rg89cg6uujD8LixSl Z54SPy+9O47lnUYQx8or779F/1u9N0k06tXkuHxFN7fz38LWvLe18nuiYLJV0+3JKc1izW0h +z85LohZkjS1Q6PoSqHT+tce+195S8xuZlKcuSvlYGqnl+zkx/+nK7EUZyQaajEXFScCAKnM BtgjAgAA Cc: Tom Rini , Przemyslaw Marczak Subject: [U-Boot] [PATCH 2/2] mmc: dw_mmc: Make timeout error visible to u-boot console X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" The timeout error for DW MMC transfer should be visible on the u-boot console to speed up the process of debugging. Signed-off-by: Lukasz Majewski Cc: Tom Rini Cc: Simon Glass --- drivers/mmc/dw_mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/dw_mmc.c b/drivers/mmc/dw_mmc.c index 21a92d2..98f5cb7 100644 --- a/drivers/mmc/dw_mmc.c +++ b/drivers/mmc/dw_mmc.c @@ -231,7 +231,7 @@ static int dwmci_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, /* Check for timeout. */ if (get_timer(start) > timeout) { - debug("%s: Timeout waiting for data!\n", + printf("%s: Timeout waiting for data!\n", __func__); ret = TIMEOUT; break;