From patchwork Wed Jan 26 15:56:12 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Gao, Yunpeng" X-Patchwork-Id: 509101 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 p0QFuOkc018049 for ; Wed, 26 Jan 2011 15:56:24 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751997Ab1AZP4Y (ORCPT ); Wed, 26 Jan 2011 10:56:24 -0500 Received: from mga01.intel.com ([192.55.52.88]:33189 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751025Ab1AZP4X convert rfc822-to-8bit (ORCPT ); Wed, 26 Jan 2011 10:56:23 -0500 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 26 Jan 2011 07:56:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.60,380,1291622400"; d="scan'208";a="651381747" Received: from pgsmsx601.gar.corp.intel.com ([10.221.43.69]) by fmsmga002.fm.intel.com with ESMTP; 26 Jan 2011 07:56:13 -0800 Received: from shsmsx602.ccr.corp.intel.com (10.239.4.104) by pgsmsx601.gar.corp.intel.com (10.221.43.69) with Microsoft SMTP Server (TLS) id 8.2.254.0; Wed, 26 Jan 2011 23:56:13 +0800 Received: from shsmsx501.ccr.corp.intel.com ([10.239.4.141]) by SHSMSX602.ccr.corp.intel.com ([10.239.4.104]) with mapi; Wed, 26 Jan 2011 23:56:12 +0800 From: "Gao, Yunpeng" To: "linux-mmc@vger.kernel.org" Date: Wed, 26 Jan 2011 23:56:12 +0800 Subject: Is it possible for sdhci host controller driver to schedule inside sdhci_request() function? Thread-Topic: Is it possible for sdhci host controller driver to schedule inside sdhci_request() function? Thread-Index: Acu9cY5zdWSjwsl8T4G+4cs2jt2QOw== Message-ID: 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]); Wed, 26 Jan 2011 15:56:25 +0000 (UTC) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 5dead05..2c2ac66 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -1184,6 +1184,10 @@ static void sdhci_request(struct mmc_host *mmc, struct mmc_request *mrq) host = mmc_priv(mmc); + printk(KERN_ERR "%s: Enter into sdhci_request:\n", mmc_hostname(host->mmc)); + msleep(10); + printk(KERN_ERR "%s: Go on after msleep 10ms ...\n", mmc_hostname(host->mmc)); + spin_lock_irqsave(&host->lock, flags); WARN_ON(host->mrq != NULL);