u-boot-2016/drivers
Przemyslaw Marczak 56b34bc617 mmc: sdhci: Avoid commands errors by simple timeout adaptation.
Old command timeout value was too small and it caused I/O errors which
led to uncompleted read/write/erase operations and filesystem errors.
Timeout adaptation fixes this issue.

Changes in sdhci_send_command() function:
- change timeout variable to static
- increase default command timeout to 100 ms
- add definition of max command timeout value,
  which can be redefined in each board config file
- wait for card ready state for max defined time
  if it doesn't exceed defined maximum or return COMM_ERR

Once successfully increased timeout value will be used in next function
call. This fix was tested on Goni, Trats, Trats2 boards by testing UMS
on MMC storage.

Changes v2:
- move global variable cmd_timeout into function sdhci_send_command()
- change condition "==" to ">=" when comparing time with timeout
- print information about timeout increasing and card busy timeout

Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
2013-10-31 09:55:33 +02:00
..
bios_emulator biosemu: include <asm/io.h> header 2013-04-02 16:23:35 -04:00
block Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
bootcount Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
crypto Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
dfu dfu:core: Export dfu_{get|free}_buf functions 2013-10-20 23:42:40 +02:00
dma dma: apbh: Add special circular mode for LCD 2013-08-09 21:48:34 +02:00
fpga Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
gpio Merge branch 'u-boot-atmel/master' into 'u-boot-arm/master' 2013-09-04 11:50:25 +02:00
hwmon Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
i2c i2c: eliminate warnings in i2c_reloc_fixup function 2013-10-17 07:24:41 +02:00
input Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
misc Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
mmc mmc: sdhci: Avoid commands errors by simple timeout adaptation. 2013-10-31 09:55:33 +02:00
mtd mtd/fsl_elbc: take NAND_ECC_SOFT_BCH config option into account 2013-10-24 09:36:05 -07:00
net net/fman: add a fm_enable_port function 2013-10-24 09:35:59 -07:00
pci PCIe:change the method to get the address of a requested capability in configuration space. 2013-10-16 16:15:17 -07:00
pcmcia Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
power ARM: OMAP5: Power: Add new function to turn on SMPS10 2013-10-20 23:42:39 +02:00
qe Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
rtc Coding Style cleanup: replace leading SPACEs by TABs 2013-10-14 16:06:54 -04:00
serial Merge branch 'master' of git://git.denx.de/u-boot-sh 2013-10-22 08:37:46 -04:00
sound Sound: MAX98095: Support I2S0 channel 2013-09-24 09:10:33 -04:00
spi spi: mxc_spi: Fix double incrementing read pointer for unaligned buffers 2013-10-16 00:14:30 +05:30
tpm Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
twserial Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
usb powerpc/usb:Differentiate USB controller base address 2013-10-24 09:35:09 -07:00
video video, formike: change tag/val write 2013-10-30 10:48:41 +01:00
watchdog microblaze: Fix watchdog initialization 2013-10-16 09:24:38 -04:00