From patchwork Tue Dec 28 11:25:23 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Hannemann X-Patchwork-Id: 435971 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oBSBNZgC014223 for ; Tue, 28 Dec 2010 11:25:30 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753093Ab0L1LZa (ORCPT ); Tue, 28 Dec 2010 06:25:30 -0500 Received: from slowhand.arndnet.de ([88.198.19.76]:36123 "EHLO mail.unitix.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753083Ab0L1LZ3 (ORCPT ); Tue, 28 Dec 2010 06:25:29 -0500 Received: from kallisto.arndnet.arn (p4FCB5F51.dip.t-dialin.net [79.203.95.81]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.unitix.de (Postfix) with ESMTP id 2B21A13E8D; Tue, 28 Dec 2010 12:25:27 +0100 (CET) From: Arnd Hannemann To: linux-mmc@vger.kernel.org Cc: Chris Ball , Ohad Ben-Cohen , Arnd Hannemann Subject: [PATCH] [RFC] mmc: perform SDIO reset on power restore of host Date: Tue, 28 Dec 2010 12:25:23 +0100 Message-Id: <1293535523-19191-1-git-send-email-arnd@arndnet.de> X-Mailer: git-send-email 1.7.1 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Tue, 28 Dec 2010 11:25:30 +0000 (UTC) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 31ae07a..21cdee6 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -1617,8 +1617,13 @@ int mmc_power_restore_host(struct mmc_host *host) } mmc_power_up(host); - ret = host->bus_ops->power_restore(host); + mmc_claim_host(host); + sdio_reset(host); + mmc_go_idle(host); + mmc_release_host(host); + + ret = host->bus_ops->power_restore(host); mmc_bus_put(host); return ret;