ARM: 6980/1: mmci: use StartBitErr to detect bad connections
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 30 Jun 2011 14:10:21 +0000 (15:10 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 6 Jul 2011 19:46:04 +0000 (20:46 +0100)
commit757df746fc5db0020ddab45914617a19d149c252
treed6c4d703c89b774c653d4327ed53d4620fbd7d96
parent2eb5af44b1d22d7f7b715e0b9a4e516eb4451bf9
ARM: 6980/1: mmci: use StartBitErr to detect bad connections

Stresstesting insert/remove of SD-cards can trigger
a StartBitErr. This made the driver to hang in forever
waiting for a non ocurring data timeout.

This bit and interrupt is documented in the original
PL180 TRM, just never implemented until now.

Signed-off-by: Ulf Hansson <ulf.hansson@stericsson.com>
Reviewed-by: Linus Walleij <linus.walleij@stericsson.com>
Reviewed-by: Jonas Aberg <jonas.aberg@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/mmc/host/mmci.c
drivers/mmc/host/mmci.h