]> git.dujemihanovic.xyz Git - u-boot.git/commit
drivers/mmc/fsl_esdhc.c: reordered tests
authorFrans Meulenbroeks <fransmeulenbroeks@gmail.com>
Sat, 31 Jul 2010 04:45:18 +0000 (04:45 +0000)
committerAndy Fleming <afleming@freescale.com>
Wed, 13 Apr 2011 11:35:22 +0000 (06:35 -0500)
commit63fb5a7e4b0ada0bf77dd89120a61d2bd14e50af
treec26875c041c5d580872505778654a71d6f8b8e33
parentb97e0cd78837180e122cd9209b9e71e2c2d3f911
drivers/mmc/fsl_esdhc.c: reordered tests

As DATA_ERROR includes the value IRQSTAT_DTOE, a timeout error
would yield the first error return instead of TIMEOUT.
By swapping the test TIMEOUTs are reported as such

An alternate solution would be to remove the IRQSTAT_DTOE from the DATA_ERROR define
but as that one might be less desired I've opted for the simplest solution

Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
drivers/mmc/fsl_esdhc.c