Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932644AbbFTWXM (ORCPT ); Sat, 20 Jun 2015 18:23:12 -0400 Received: from mail-yh0-f44.google.com ([209.85.213.44]:34888 "EHLO mail-yh0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754859AbbFTWW7 (ORCPT ); Sat, 20 Jun 2015 18:22:59 -0400 MIME-Version: 1.0 In-Reply-To: <1434451039-18195-3-git-send-email-vigneshr@ti.com> References: <1434451039-18195-1-git-send-email-vigneshr@ti.com> <1434451039-18195-3-git-send-email-vigneshr@ti.com> Date: Sun, 21 Jun 2015 00:22:58 +0200 Message-ID: Subject: Re: [PATCH 2/3] mmc: host: omap_hsmmc: Handle BADA, DEB and CEB interrupts From: Andreas Fenkart To: Vignesh R Cc: Ulf Hansson , Tony Lindgren , NeilBrown , linux-mmc , linux-omap , linux-kernel@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1559 Lines: 36 TESTED-BY 2015-06-16 12:37 GMT+02:00 Vignesh R : > Sometimes BADA, DEB or CEB error interrupts occur when sd card is > unplugged during data transfer. These interrupts are currently ignored > by the interrupt handler. But, this results in card not being > recognised on subsequent insertion. This is because mmcqd is waiting > forever for the data transfer(for which error occurred) to complete. > Fix this, by reporting BADA, DEB, CEB errors to mmc-core as -EILSEQ, so > that the core can do appropriate handling. > > Signed-off-by: Vignesh R > --- > drivers/mmc/host/omap_hsmmc.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c > index d0abdffb0d7c..fb4bfefd9250 100644 > --- a/drivers/mmc/host/omap_hsmmc.c > +++ b/drivers/mmc/host/omap_hsmmc.c > @@ -1068,7 +1068,8 @@ static void omap_hsmmc_do_irq(struct omap_hsmmc_host *host, int status) > } > if (status & (CTO_EN | DTO_EN)) > hsmmc_command_incomplete(host, -ETIMEDOUT, end_cmd); > - else if (status & (CCRC_EN | DCRC_EN)) > + else if (status & (CCRC_EN | DCRC_EN | DEB_EN | CEB_EN | > + BADA_EN)) > hsmmc_command_incomplete(host, -EILSEQ, end_cmd); > > if (status & ACE_EN) { > -- > 2.4.1 > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in Please read the FAQ at http://www.tux.org/lkml/