From patchwork Thu Dec 2 22:38:12 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?TWljaGHFgiBNaXJvc8WCYXc=?= X-Patchwork-Id: 376101 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 oB2Mc8OJ032572 for ; Thu, 2 Dec 2010 22:38:26 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758147Ab0LBWiR (ORCPT ); Thu, 2 Dec 2010 17:38:17 -0500 Received: from rere.qmqm.pl ([89.167.52.164]:50417 "EHLO rere.qmqm.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753566Ab0LBWiQ (ORCPT ); Thu, 2 Dec 2010 17:38:16 -0500 Received: by rere.qmqm.pl (Postfix, from userid 1000) id 2EBA613A15; Thu, 2 Dec 2010 23:38:12 +0100 (CET) Date: Thu, 2 Dec 2010 23:38:12 +0100 From: Michal Miroslaw To: Hein_Tibosch , Sahitya Tummala Cc: Andrew Morton , Pierre Ossman , Chris Ball , Ben Nizette , Sascha Hauer , Adrian Hunter , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Matt Fleming Subject: Re: [PATCH v4] mmc: Make ID freq configurable Message-ID: <20101202223812.GA2685@rere.qmqm.pl> References: <4C80187D.9000304@yahoo.es> <1291288582.15187.91.camel@stummala-linux.in.qualcomm.com> <4CF80DC6.1020801@yahoo.es> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <4CF80DC6.1020801@yahoo.es> User-Agent: Mutt/1.5.18 (2008-05-17) 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]); Thu, 02 Dec 2010 22:38:26 +0000 (UTC) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 6286898..32a4798 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -1564,6 +1564,11 @@ void mmc_rescan(struct work_struct *work) * Try SDMEM (but not MMC) even if SDIO * is broken. */ + mmc_power_up(host); + sdio_reset(host); + mmc_go_idle(host); + mmc_send_if_cond(host, host->ocr_avail); + if (mmc_send_app_op_cond(host, 0, &ocr)) goto out_fail;