From patchwork Mon Nov 19 16:29:57 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Venkatraman S X-Patchwork-Id: 1765841 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 B88F8DF264 for ; Mon, 19 Nov 2012 16:30:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753774Ab2KSQaj (ORCPT ); Mon, 19 Nov 2012 11:30:39 -0500 Received: from devils.ext.ti.com ([198.47.26.153]:42112 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753767Ab2KSQaj (ORCPT ); Mon, 19 Nov 2012 11:30:39 -0500 Received: from dlelxv30.itg.ti.com ([172.17.2.17]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id qAJGUcJZ023581; Mon, 19 Nov 2012 10:30:38 -0600 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv30.itg.ti.com (8.13.8/8.13.8) with ESMTP id qAJGUco5024270; Mon, 19 Nov 2012 10:30:38 -0600 Received: from dlelxv23.itg.ti.com (172.17.1.198) by dfle73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.1.323.3; Mon, 19 Nov 2012 10:30:37 -0600 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dlelxv23.itg.ti.com (8.13.8/8.13.8) with ESMTP id qAJGUb86016263; Mon, 19 Nov 2012 10:30:37 -0600 Received: from localhost (ltuba0393540.apr.dhcp.ti.com [172.24.136.206]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id qAJGUZw18538; Mon, 19 Nov 2012 10:30:36 -0600 (CST) From: Venkatraman S To: CC: , , Balaji T K , Venkatraman S Subject: [PATCH 3/7] mmc: omap_hsmmc: update error code for response_busy cmd Date: Mon, 19 Nov 2012 21:59:57 +0530 Message-ID: <1353342601-15210-3-git-send-email-svenkatr@ti.com> X-Mailer: git-send-email 1.8.0 In-Reply-To: <1353342601-15210-1-git-send-email-svenkatr@ti.com> References: <1353342601-15210-1-git-send-email-svenkatr@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 From: Balaji T K update error code to cmd->error for commands with response_busy and no data Signed-off-by: Balaji T K Reviewed-by: Felipe Balbi Signed-off-by: Venkatraman S --- drivers/mmc/host/omap_hsmmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index 2d90da8..571cd80 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c @@ -981,8 +981,8 @@ 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)