From patchwork Fri Jul 13 12:57:15 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Girish K S X-Patchwork-Id: 9988 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id C28E124027 for ; Fri, 13 Jul 2012 12:57:42 +0000 (UTC) Received: from mail-yx0-f180.google.com (mail-yx0-f180.google.com [209.85.213.180]) by fiordland.canonical.com (Postfix) with ESMTP id 6E58CA181E2 for ; Fri, 13 Jul 2012 12:57:42 +0000 (UTC) Received: by yenq6 with SMTP id q6so3801383yen.11 for ; Fri, 13 Jul 2012 05:57:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:x-gm-message-state; bh=eUeI3C8DTv99f+tS8twCtYY/JPrGnt24TUa0uib1wjQ=; b=MRRiADIWnpwYx7vrOUyPXjG2JbU/RJcBMlx5/4PcltvUgsOf9p7OypDhJdcUQMNGsI I1mUYqzjZWejiciwtu0mDsbIbO5gf+saaIrDgzCQ7fQYCF5Mx0sOpan3l2VMen2aEuaa ynrDT+GaAP05rqksjJrhcibbfSVPP5fazZtY0UzNkE18kav3+aOt/P0UoPbUP10uBpN1 kG0xrUu2g238U6cZ9100/6DEQ/vyWB6GMrGkt105eQ7O7Jeh12pKU4jSjsNKMsI/Lrcw WC6WGcmeGtSFfjzhVSikxD52CUqaJspFLN3KGKaBQYWn/b4zJX06raMFM2XoSG+HFYbB 7eXA== Received: by 10.50.87.227 with SMTP id bb3mr797959igb.57.1342184261796; Fri, 13 Jul 2012 05:57:41 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.241.2 with SMTP id lc2csp14891ibb; Fri, 13 Jul 2012 05:57:40 -0700 (PDT) Received: by 10.68.242.7 with SMTP id wm7mr3323757pbc.98.1342184260427; Fri, 13 Jul 2012 05:57:40 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id hw8si14573394pbc.176.2012.07.13.05.57.40 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 13 Jul 2012 05:57:40 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of girish.shivananjappa@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of girish.shivananjappa@linaro.org) smtp.mail=girish.shivananjappa@linaro.org Received: by pbbrr4 with SMTP id rr4so6597445pbb.37 for ; Fri, 13 Jul 2012 05:57:39 -0700 (PDT) Received: by 10.68.204.33 with SMTP id kv1mr3758395pbc.22.1342184259796; Fri, 13 Jul 2012 05:57:39 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id ku7sm5981667pbc.31.2012.07.13.05.57.36 (version=SSLv3 cipher=OTHER); Fri, 13 Jul 2012 05:57:39 -0700 (PDT) From: Girish K S To: linux-mmc@vger.kernel.org Cc: cjb@laptop.org, patches@linaro.org, linux-samsung-soc@vger.kernel.org, Girish K S , Ulf Hansson Subject: [PATCH] mmc: core: skip mmc_power_up call from start host Date: Fri, 13 Jul 2012 18:27:15 +0530 Message-Id: <1342184235-6912-1-git-send-email-girish.shivananjappa@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQkLGSOrGTzYB3SOsQqHlQ0CXyvIAtvWnRbpk2R9humwFJLY2m8BbK9BaAhyFkKuy6SfMF3h The call to the mmc_power_up during the mmc_start_host breaks the card detection in design-ware host controller. This patch removes the call to mmc_power_up function during host start. This fix works fine with sdhci (sdhci compatilble host controller) and dw_mmc (design-ware host controller). and has no side effect due to this removal. Tested on : origen-board and smdk-5250 board. Signed-off-by: Girish K S Cc: Ulf Hansson --- drivers/mmc/core/core.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 9503cab..503aefc 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -2108,7 +2108,6 @@ void mmc_start_host(struct mmc_host *host) { host->f_init = max(freqs[0], host->f_min); host->rescan_disable = 0; - mmc_power_up(host); mmc_detect_change(host, 0); }