From: Nicolas Ferre Date: Tue, 11 May 2010 21:06:50 +0000 (-0700) Subject: mmc: atmel-mci: remove data error interrupt after xfer X-Git-Tag: firefly_0821_release~10186^2~1612 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ee7a0b92fcc8d1ab43cff3dd75baeb2f646a93ff;p=firefly-linux-kernel-4.4.55.git mmc: atmel-mci: remove data error interrupt after xfer commit abc2c9fdf636c4335a8d72ac3c5ae152bca44b68 upstream. Disable data error interrupts while we are actually recording that there is not such errors. This will prevent, in some cases, the warning message printed at new request queuing (in atmci_start_request()). Signed-off-by: Nicolas Ferre Cc: Haavard Skinnemoen Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/mmc/host/atmel-mci.c b/drivers/mmc/host/atmel-mci.c index 67a0fe0e2a0f..8faa703516b5 100644 --- a/drivers/mmc/host/atmel-mci.c +++ b/drivers/mmc/host/atmel-mci.c @@ -1230,6 +1230,7 @@ static void atmci_tasklet_func(unsigned long priv) } else { data->bytes_xfered = data->blocks * data->blksz; data->error = 0; + mci_writel(host, IDR, ATMCI_DATA_ERROR_FLAGS); } if (!data->stop) {