From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Fri, 28 Aug 2015 17:21:51 -0600 Subject: [U-Boot] [PATCH 2/2] mmc: dw_mmc: Make timeout error visible to u-boot console In-Reply-To: <1440769821-24005-2-git-send-email-l.majewski@samsung.com> References: <1440769821-24005-1-git-send-email-l.majewski@samsung.com> <1440769821-24005-2-git-send-email-l.majewski@samsung.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Lukasz, On 28 August 2015 at 07:50, Lukasz Majewski wrote: > > 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(-) Can this be reported at the command line level instead? It feels wrong to be printing errors in a driver. Also, why does it return TIMEOUT instead of -ETIMEOUT? Regards, Simon