From patchwork Fri Feb 4 23:19:13 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip Rakity X-Patchwork-Id: 533041 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 p14NKLtw012926 for ; Fri, 4 Feb 2011 23:20:21 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752600Ab1BDXUU (ORCPT ); Fri, 4 Feb 2011 18:20:20 -0500 Received: from na3sys009aog112.obsmtp.com ([74.125.149.207]:53391 "EHLO na3sys009aog112.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752582Ab1BDXUU convert rfc822-to-8bit (ORCPT ); Fri, 4 Feb 2011 18:20:20 -0500 Received: from source ([65.219.4.130]) (using TLSv1) by na3sys009aob112.postini.com ([74.125.148.12]) with SMTP ID DSNKTUyJskCBjTspNGmgg3kfElW3bLkSeics@postini.com; Fri, 04 Feb 2011 15:20:19 PST Received: from SC-vEXCH3.marvell.com ([10.93.76.133]) by sc-owa02.marvell.com ([10.93.76.22]) with mapi; Fri, 4 Feb 2011 15:19:15 -0800 From: Philip Rakity To: "linux-mmc@vger.kernel.org" CC: Nicolas Pitre Date: Fri, 4 Feb 2011 15:19:13 -0800 Subject: Re: [BUG] CMD52 sent as first command not CMD0 Thread-Topic: [BUG] CMD52 sent as first command not CMD0 Thread-Index: AcvEwfBYhBw+Ym2YQP6X4HD1vqXs0A== Message-ID: <06CDA980-AA11-402F-BDE1-FE251BC9238D@marvell.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 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.6 (demeter1.kernel.org [140.211.167.41]); Fri, 04 Feb 2011 23:20:21 +0000 (UTC) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 6625c05..39e8da0 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -1495,7 +1495,9 @@ static int mmc_rescan_try_freq(struct mmc_host *host, unsigned freq) mmc_hostname(host), __func__, host->f_init); #endif mmc_power_up(host); - sdio_reset(host); + + if (host->card) + sdio_reset(host); mmc_go_idle(host); mmc_send_if_cond(host, host->ocr_avail);