From patchwork Wed Dec 12 14:38:05 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 1867181 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 60DC640079 for ; Wed, 12 Dec 2012 14:38:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754462Ab2LLOi0 (ORCPT ); Wed, 12 Dec 2012 09:38:26 -0500 Received: from moutng.kundenserver.de ([212.227.126.186]:60871 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754210Ab2LLOiY (ORCPT ); Wed, 12 Dec 2012 09:38:24 -0500 Received: from axis700.grange (dslb-146-060-250-080.pools.arcor-ip.net [146.60.250.80]) by mrelayeu.kundenserver.de (node=mreu4) with ESMTP (Nemesis) id 0MM4YC-1Tm5EQ2Eay-007ht3; Wed, 12 Dec 2012 15:38:23 +0100 Received: from 6a.grange (6a.grange [192.168.1.11]) by axis700.grange (Postfix) with ESMTPS id 5F02B40B9C; Wed, 12 Dec 2012 15:38:21 +0100 (CET) Received: from lyakh by 6a.grange with local (Exim 4.72) (envelope-from ) id 1TinRy-0004i4-I0; Wed, 12 Dec 2012 15:38:18 +0100 From: Guennadi Liakhovetski To: linux-mmc@vger.kernel.org Cc: linux-sh@vger.kernel.org, Magnus Damm , Chris Ball , Teppei Kamijou , Shinya Kuribayashi Subject: [PATCH 01/14] mmc: sh_mmcif: force to fail CMD52 immediately Date: Wed, 12 Dec 2012 15:38:05 +0100 Message-Id: <1355323098-18061-2-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:oAJWDkh84KvGEzLyySYNeHDW56813GIlHKCnfbNeciS 0TZNO5Srm7+hjbzmRYJmMZLPAoy3lK6gQVdDS+MY0iJTDjSyQT WOpP7XUay3g5Xe6SeEwY6b2RsvbExOXQ+orVUyNl7a4pI5snM7 /5m5l9gLkzwJSuIdU927+kmplNO5b/FeIqUMlCf1jpesasJStu n9tmjvE0t0ag8lFFp9rqyf98aYS2ZDcz6qZ+7QqfETEkzhv5ix xteL2dIevwXMWcdSTjEvoJ9iRJmNqr60CzgphfgPMe0BA//6An GrPXLyVghxvRtAm+QvlVCcI66zEtB899aIKUrEG6/L5xYey07S BwzurK2EUKYqwgZKCuBy7KsBQ75+sJnMQzUoySavOjU4A5tq1M t9FCQEcGTc1Zw== Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org From: Teppei Kamijou mmc_rescan() sends CMD52 (SD_IO_RW_DIRECT) to reset SDIO card during card detection. CMD52 should be ignored by SD/eMMC cards, but we can also abort it in the driver immediately, since MMCIF doesn't support SDIO cards anyway. Signed-off-by: Teppei Kamijou Signed-off-by: Shinya Kuribayashi Signed-off-by: Guennadi Liakhovetski --- drivers/mmc/host/sh_mmcif.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/host/sh_mmcif.c b/drivers/mmc/host/sh_mmcif.c index 9a4c151..543f6ce 100644 --- a/drivers/mmc/host/sh_mmcif.c +++ b/drivers/mmc/host/sh_mmcif.c @@ -911,6 +911,7 @@ static void sh_mmcif_request(struct mmc_host *mmc, struct mmc_request *mrq) if ((mrq->cmd->flags & MMC_CMD_MASK) != MMC_CMD_BCR) break; case MMC_APP_CMD: + case SD_IO_RW_DIRECT: host->state = STATE_IDLE; mrq->cmd->error = -ETIMEDOUT; mmc_request_done(mmc, mrq);