OSDN Git Service

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)
commit8a8284a98c1a58f5aa3eebce7971f81bcdb29d98
tree4220b6f53626721fd9cac355c9d91e14a7c7faee
parent349ab52446772a359bc7e7699cae3880d48fa5c9
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