1
0
Fork 0
remarkable-uboot/drivers
Andrew Gabbasov 01b77353e4 fsl_esdhc: Do not clear interrupt status bits until data processed
After waiting for the command completion event, the interrupt status
bits, that occured to be set by that time, are cleared by writing them
back. It is supposed, that it should be command related bits (command
complete and may be command errors).

However, in some cases the DMA already completes by that time before
the full transaction completes. The corresponding DINT bit gets set
and then cleared before even entering the loop, waiting for data part
completion. That waiting loop never gets this bit set, causing the
operation to hang. This is reported to happen, for example, for write
operation of 1 sector to upper area (block #7400000) of SanDisk Ultra II
8GB card.

The solution could be to explicitly clear only command related interrupt
status bits. However, since subsequent processing does not rely on
any command bits state, it could be easier just to remove clearing
of any bits at that point, leaving them all until all data processing
completes. After that the whole register will be cleared at once.

Also, on occasion, interrupts masking moved to before writing the command,
just for the case there should be no chance of interrupt between the first
command and interrupts masking.

Reported-by: Dirk Behme <dirk.behme@de.bosch.com>
Signed-off-by: Andrew Gabbasov <andrew_gabbasov@mentor.com>
Acked-by: Dirk Behme <dirk.behme@de.bosch.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
2013-06-13 16:52:19 -05:00
..
bios_emulator biosemu: include <asm/io.h> header 2013-04-02 16:23:35 -04:00
block part/dev_desc: Add log2 of blocksize to block_dev_desc data struct 2013-05-01 16:24:02 -04:00
bootcount Consolidate bootcount code into drivers/bootcount 2012-09-01 14:26:02 +02:00
crypto Exynos: Add hardware accelerated SHA256 and SHA1 2013-03-29 20:10:42 +09:00
dfu dfu: NAND specific routines for DFU operation 2013-04-10 15:22:24 +02:00
dma dma: Add i.MX6 support to drivers/dma/apbh_dma.c 2013-04-22 10:26:13 +02:00
fpga fpga: Check device name against bitstream name 2013-05-06 10:41:25 +02:00
gpio bfin: Move gpio support for bf54x and bf60x into the generic driver folder. 2013-05-13 16:30:27 +08:00
hwmon hwmon: do not init sensors on startup 2011-08-04 23:30:38 +02:00
i2c i2c: zynq: Add support for Xilinx Zynq 2013-04-30 11:39:28 +02:00
input input: Finish simplifing key_matrix_decode_fdt() 2013-06-06 10:48:30 -04:00
misc Merge branch 'u-boot-ti/master' into 'u-boot-arm/master' 2013-05-11 22:24:28 +02:00
mmc fsl_esdhc: Do not clear interrupt status bits until data processed 2013-06-13 16:52:19 -05:00
mtd bug, nand, am33xx: nand->ecc.strength not set in board_nand_init() 2013-06-04 11:50:04 -05:00
net Merge branch 'u-boot/master' into 'u-boot-arm/master' 2013-05-30 14:45:06 +02:00
pci pci: introduce CONFIG_PCI_INDIRECT_BRIDGE option 2013-06-07 14:17:01 -04:00
pcmcia PXA: Remove PXA PCMCIA support 2012-03-26 23:09:23 +02:00
power palmas: use palmas_i2c_[read|write]_u8 2013-05-10 08:25:55 -04:00
qe ppc: Move CONFIG_QE to arch_global_data 2013-02-04 09:05:42 -05:00
rtc Consolidate bool type 2013-04-01 16:33:52 -04:00
serial Power: remove support for Freescale MPC8220 2013-05-15 08:41:03 -04:00
sound Sound: Support for MAX98095 codec in driver 2013-03-08 22:34:18 +09:00
spi Merge branch 'u-boot/master' into 'u-boot-arm/master' 2013-05-30 14:45:06 +02:00
tpm tpm: Reorganize the I2C TPM driver 2013-06-03 01:31:23 -07:00
twserial Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
usb Merge branch 'u-boot/master' into 'u-boot-arm/master' 2013-05-30 14:45:06 +02:00
video Merge branch 'master' of git://git.denx.de/u-boot-video 2013-06-07 08:35:36 -04:00
watchdog blackfin: Move blackfin watchdog driver out of the blackfin arch folder. 2013-05-13 16:30:26 +08:00