Skip to content

Commit b63038d

Browse files
Ulf HanssonRussell King
authored andcommitted
ARM: 7214/1: mmc: mmci: Fixup handling of MCI_STARTBITERR
The interrupt was previously enabled and then correctly cleared. Now we also handle it correctly. Cc: <stable@vger.kernel.org> Tested-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Ulf Hansson <ulf.hansson@stericsson.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent 55b02d2 commit b63038d

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎drivers/mmc/host/mmci.c‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,8 @@ mmci_data_irq(struct mmci_host *host, struct mmc_data *data,
675675
unsigned int status)
676676
{
677677
/* First check for errors */
678-
if (status & (MCI_DATACRCFAIL|MCI_DATATIMEOUT|MCI_TXUNDERRUN|MCI_RXOVERRUN)) {
678+
if (status & (MCI_DATACRCFAIL|MCI_DATATIMEOUT|MCI_STARTBITERR|
679+
MCI_TXUNDERRUN|MCI_RXOVERRUN)) {
679680
u32 remain, success;
680681

681682
/* Terminate the DMA transfer */
@@ -955,8 +956,9 @@ static irqreturn_t mmci_irq(int irq, void *dev_id)
955956
dev_dbg(mmc_dev(host->mmc), "irq0 (data+cmd) %08x\n", status);
956957

957958
data = host->data;
958-
if (status & (MCI_DATACRCFAIL|MCI_DATATIMEOUT|MCI_TXUNDERRUN|
959-
MCI_RXOVERRUN|MCI_DATAEND|MCI_DATABLOCKEND) && data)
959+
if (status & (MCI_DATACRCFAIL|MCI_DATATIMEOUT|MCI_STARTBITERR|
960+
MCI_TXUNDERRUN|MCI_RXOVERRUN|MCI_DATAEND|
961+
MCI_DATABLOCKEND) && data)
960962
mmci_data_irq(host, data, status);
961963

962964
cmd = host->cmd;

0 commit comments

Comments
 (0)