]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: omap_hsmmc: Handle BADA, DEB and CEB interrupts
authorVignesh R <vigneshr@ti.com>
Tue, 16 Jun 2015 10:37:18 +0000 (16:07 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 24 Jul 2015 08:18:21 +0000 (10:18 +0200)
commitf1d9a22b6fff1cdec7873988847a1dedf91c4438
tree87982e8a5d04643ccec1b9c2f051ae9441fffaf2
parent2dc0c87611f42241004c415ef2b484ad60004a42
mmc: omap_hsmmc: Handle BADA, DEB and CEB interrupts

Sometimes BADA, DEB or CEB error interrupts occur when sd card is
unplugged during data transfer. These interrupts are currently ignored
by the interrupt handler. But, this results in card not being
recognised on subsequent insertion. This is because mmcqd is waiting
forever for the data transfer(for which error occurred) to complete.
Fix this, by reporting BADA, DEB, CEB errors to mmc-core as -EILSEQ, so
that the core can do appropriate handling.

Signed-off-by: Vignesh R <vigneshr@ti.com>
Tested-by: Andreas Fenkart <afenkart@gmail.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/omap_hsmmc.c