From patchwork Mon Nov 12 13:06:44 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balaji T K X-Patchwork-Id: 1728161 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 05D10DFE80 for ; Mon, 12 Nov 2012 13:06:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752601Ab2KLNGz (ORCPT ); Mon, 12 Nov 2012 08:06:55 -0500 Received: from comal.ext.ti.com ([198.47.26.152]:44856 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752402Ab2KLNGw (ORCPT ); Mon, 12 Nov 2012 08:06:52 -0500 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id qACD6oIM032690; Mon, 12 Nov 2012 07:06:51 -0600 Received: from DBDE71.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id qACD6mgZ003555; Mon, 12 Nov 2012 18:36:49 +0530 (IST) Received: from dbdp33.itg.ti.com (172.24.170.252) by DBDE71.ent.ti.com (172.24.170.149) with Microsoft SMTP Server id 14.1.323.3; Mon, 12 Nov 2012 18:36:48 +0530 Received: from ulaa0393241.india.ti.com (smtpvbd.itg.ti.com [172.24.170.250]) by dbdp33.itg.ti.com (8.13.8/8.13.8) with ESMTP id qACD6kZp016663; Mon, 12 Nov 2012 18:36:48 +0530 From: Balaji T K To: , CC: , , , Balaji T K Subject: [PATCH v3 3/3] mmc: omap_hsmmc: update error code for response_busy cmd Date: Mon, 12 Nov 2012 18:36:44 +0530 Message-ID: <1352725604-20390-4-git-send-email-balajitk@ti.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1352725604-20390-1-git-send-email-balajitk@ti.com> References: <1352477176-6673-1-git-send-email-balajitk@ti.com> <1352725604-20390-1-git-send-email-balajitk@ti.com> MIME-Version: 1.0 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org update error code to cmd->error for commands with response_busy and no data Signed-off-by: Balaji T K Reviewed-by: Felipe Balbi --- drivers/mmc/host/omap_hsmmc.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index d931e08..352e18e 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c @@ -980,8 +980,9 @@ static void hsmmc_command_incomplete(struct omap_hsmmc_host *host, if (host->data) { omap_hsmmc_reset_controller_fsm(host, SRD); omap_hsmmc_dma_cleanup(host, err); + } else if (host->mrq && host->mrq->cmd) { + host->mrq->cmd->error = err; } - } static void omap_hsmmc_do_irq(struct omap_hsmmc_host *host, int status)