From patchwork Wed Dec 12 14:38:15 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 1867251 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 B17D2DF266 for ; Wed, 12 Dec 2012 14:38:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754552Ab2LLOic (ORCPT ); Wed, 12 Dec 2012 09:38:32 -0500 Received: from moutng.kundenserver.de ([212.227.17.8]:54327 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754355Ab2LLOi0 (ORCPT ); Wed, 12 Dec 2012 09:38:26 -0500 Received: from axis700.grange (dslb-146-060-250-080.pools.arcor-ip.net [146.60.250.80]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0Lpzv9-1TFlMl0Jst-00f5ep; Wed, 12 Dec 2012 15:38:24 +0100 Received: from 6a.grange (6a.grange [192.168.1.11]) by axis700.grange (Postfix) with ESMTPS id CE429105F7; Wed, 12 Dec 2012 15:38:21 +0100 (CET) Received: from lyakh by 6a.grange with local (Exim 4.72) (envelope-from ) id 1TinRz-0004iO-1F; Wed, 12 Dec 2012 15:38:19 +0100 From: Guennadi Liakhovetski To: linux-mmc@vger.kernel.org Cc: linux-sh@vger.kernel.org, Magnus Damm , Chris Ball Subject: [PATCH 11/14] mmc: sh-mmcif: reset error code for any opcode Date: Wed, 12 Dec 2012 15:38:15 +0100 Message-Id: <1355323098-18061-12-git-send-email-g.liakhovetski@gmx.de> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1355323098-18061-1-git-send-email-g.liakhovetski@gmx.de> References: <1355323098-18061-1-git-send-email-g.liakhovetski@gmx.de> X-Provags-ID: V02:K0:9ordIp6+w7rgTaGY21QV239hg7L9Ne0anRvaJjl9ito WCesaTd4/IKF+98HN9iHIXbWQNd1lcu81W54kZlCTFvkds6M98 AIQMKFzHL50TBFJLigwJSAnHNKqkF1tZM5Rb9YsAiRNpeikKBk g9mBopCK9Vg/pua3jdJRFyRp+s3EdNqS94HP3WerYDVtioWm3R W2NBhAYhY0IF5yEfPtoB3GBAEcOBU0SkJomdBIcv7mvZvG69oV +irDxH1Co43ib1gmGufMfvxChLKdllv0EYotvhXknaQITaUah2 bcG6atL1+AeACVrdYosaPPHm6W2PP4fVOApOjHs8pRDMzq+IDR WlIyO8l5B3fdl8+y4RyNqWR4JxOq2ylIvpldGnYx/iyiH2wPIz tFG+xECJzFglcocwyQzsE0oVia6vN18fBw= Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org If a command execution has produced an error, it has to be reset as a part of the error handling. Signed-off-by: Guennadi Liakhovetski --- drivers/mmc/host/sh_mmcif.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/host/sh_mmcif.c b/drivers/mmc/host/sh_mmcif.c index 96ab2e1..03493e4 100644 --- a/drivers/mmc/host/sh_mmcif.c +++ b/drivers/mmc/host/sh_mmcif.c @@ -1041,7 +1041,6 @@ static bool sh_mmcif_end_cmd(struct sh_mmcif_host *host) case MMC_SELECT_CARD: case MMC_APP_CMD: cmd->error = -ETIMEDOUT; - host->sd_error = false; break; default: cmd->error = sh_mmcif_error_manage(host); @@ -1049,6 +1048,7 @@ static bool sh_mmcif_end_cmd(struct sh_mmcif_host *host) cmd->opcode, cmd->error); break; } + host->sd_error = false; return false; } if (!(cmd->flags & MMC_RSP_PRESENT)) {