From patchwork Mon Feb 14 07:12:28 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip Rakity X-Patchwork-Id: 554201 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 p1E7GCCx017441 for ; Mon, 14 Feb 2011 07:16:26 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751420Ab1BNHQ0 (ORCPT ); Mon, 14 Feb 2011 02:16:26 -0500 Received: from na3sys009aog111.obsmtp.com ([74.125.149.205]:57294 "EHLO na3sys009aog111.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751408Ab1BNHQ0 convert rfc822-to-8bit (ORCPT ); Mon, 14 Feb 2011 02:16:26 -0500 Received: from source ([65.219.4.129]) (using TLSv1) by na3sys009aob111.postini.com ([74.125.148.12]) with SMTP ID DSNKTVjWyZ0S6MV1SYrwiDUJD/zh5Yyb17wG@postini.com; Sun, 13 Feb 2011 23:16:25 PST Received: from SC-vEXCH3.marvell.com ([10.93.76.133]) by SC-OWA01.marvell.com ([10.93.76.21]) with mapi; Sun, 13 Feb 2011 23:11:29 -0800 From: Philip Rakity To: "linux-mmc@vger.kernel.org" CC: Mark Brown Date: Sun, 13 Feb 2011 23:12:28 -0800 Subject: [PATCH] mmc: core: add comment why sdio_reset is done at init time Thread-Topic: [PATCH] mmc: core: add comment why sdio_reset is done at init time Thread-Index: AcvMFoogqWqIVTt2SNeSC3anY9fssA== Message-ID: <1091D46E-68D9-49FC-BBA6-6908BC1835AD@marvell.com> 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]); Mon, 14 Feb 2011 07:16:26 +0000 (UTC) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 34a7e8c..d9fb0d3 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -1494,6 +1494,12 @@ 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 sends CMD52 to reset card. Since we do not know + * if the card is being re-initialzed just send it. CMD52 + * should be ignored by SD/eMMC cards + */ sdio_reset(host); mmc_go_idle(host);