]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sh_mmcif: process error interrupts first
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Wed, 14 Dec 2011 18:31:51 +0000 (19:31 +0100)
committerChris Ball <cjb@laptop.org>
Thu, 12 Jan 2012 04:58:45 +0000 (23:58 -0500)
commitd6eb5460c1bec3f30bc2cf50d0a4d7e7b99ada3a
tree4220b6f53626721fd9cac355c9d91e14a7c7faee
parent1aad3524de2deced319395faf4f266296d4921e5
mmc: sh_mmcif: process error interrupts first

If an interrupt is coming with both error and data completion status bits
set, it has to be handled as an error interrupt, for which error interrupts
have to be processed first. The current version of the driver on the
contrary doesn't recognise such interrupts as an error event, which leads
to data corruption and breaks the error recovery.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sh_mmcif.c