From patchwork Wed Mar 7 13:20:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 130884 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp5175512lja; Wed, 7 Mar 2018 05:21:29 -0800 (PST) X-Google-Smtp-Source: AG47ELt36OT+TYYlmV0HFhUtZpS9onZUZ9c2VJoiuzny+FEaiENh2crqfLcerlTUeRLWYo71uN9f X-Received: by 2002:a17:902:51ee:: with SMTP id y101-v6mr20692490plh.157.1520428889348; Wed, 07 Mar 2018 05:21:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520428889; cv=none; d=google.com; s=arc-20160816; b=ajocginhAePswvsF+J8O22iaq++2xVE/IsQKQnJsdKN2Hr0je/xr3P5C1tmqYKXCdy V0u7Z2r/mMQ/RIeya6LQM93PQDZtfwBTC44H8M5Cd4t2X/39/gnNWpvUxvKXo40vGOO/ mlL7QpS6PtMJykC1It+QraUI1yBufvChehYkAEiSOuDy75m42akXQxQDwX7sH7iilRcp LtnZXgux+hObyy7wXjF0oYtaqQppdfc0M7f7gH+x+L81sxUE17ax+a7SM8g2btvDN+L3 BNHAJwwEy5BB37OSZuNPqIkDF/ybLHY4Z5vQzs3vOLp2KpF1wZLPjLUMNXn09hycBnCR KqwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=8NRbuYhEk7L9iJp/bG9j1J28Xz/hF9T4+Lr1OwCCoyc=; b=heNb0hA3FQsUTqhHR1OInB0chUk3FncnQ53RMYxHHLMB7SjCplvpeOHVd5AVnGB8qt TwEczyXy6RUAGU4i7r9sDZRCmWEybO4pvX4AsF0bNkePaQMJZHUqX0/p9Nx0+C//7Ec0 7pm5+pMZ52YP6x98T378F3GLBTjOjXavEPJSxVsroiOP72RmIQ0ztizI+n+raJXULPN5 ZWNe/kMYULxxSnJXP30CJyj6Al5zHej5nFkL8bUYhWl7UMAggQrJhtP33STS7nkRuKH9 hh6ciEBm6SySwEoGX0iHGyouWt+orw9nRS7a0yvsByB4GZcqFsS53yvAhbK8fnBZ2d/+ zLdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=HKQDRVKM; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=QUARANTINE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a6si11362863pgd.787.2018.03.07.05.21.29; Wed, 07 Mar 2018 05:21:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=HKQDRVKM; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=QUARANTINE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754505AbeCGNV1 (ORCPT + 5 others); Wed, 7 Mar 2018 08:21:27 -0500 Received: from fllnx210.ext.ti.com ([198.47.19.17]:52219 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751220AbeCGNVW (ORCPT ); Wed, 7 Mar 2018 08:21:22 -0500 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id w27DKqol004116; Wed, 7 Mar 2018 07:20:52 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1520428852; bh=YTDzuY2kr6aE7jY/oJCUHLd716vEJ5gexYRAcH6/5pQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=HKQDRVKML+XUAEFBchAfHek2VDS4Ti+UdPQwfXbLfTm7NCSkoE859ICELXQkb6bUW jKrm84LVysyMJ+lsv7MNOfZ6i06L0pDkI8Lqi/6mvE/pMuJHw9debQZlfAhtIselkG Uk249V/yolDb9oKj8RRhi3hMCkp5GfMCB+n8/B9U= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w27DKqAE016026; Wed, 7 Mar 2018 07:20:52 -0600 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Wed, 7 Mar 2018 07:20:52 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Wed, 7 Mar 2018 07:20:52 -0600 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w27DKMnP018331; Wed, 7 Mar 2018 07:20:48 -0600 From: Kishon Vijay Abraham I To: Ulf Hansson , Tony Lindgren , Adrian Hunter CC: Rob Herring , Mark Rutland , Russell King , , , , , , Subject: [PATCH v3 05/11] mmc: sdhci: Disable HS200 mode if controller can't support 1.8v Date: Wed, 7 Mar 2018 18:50:14 +0530 Message-ID: <20180307132020.30951-6-kishon@ti.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180307132020.30951-1-kishon@ti.com> References: <20180307132020.30951-1-kishon@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Though MMC controller can indicate HS200 mode capability (by using "mmc-hs200-1_8v" dt property), if the IO lines in the board is connected to 3.3v supply, HS200 mode cannot be supported. Such boards have "no-1-8-v" property in their dts file. Disable HS200 mode for boards which have "no-1-8-v" set. Signed-off-by: Kishon Vijay Abraham I --- drivers/mmc/host/sdhci.c | 1 + 1 file changed, 1 insertion(+) -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 2ededa7f43df..aa8b5ca0d1b0 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -3672,6 +3672,7 @@ int sdhci_setup_host(struct sdhci_host *host) if (host->quirks2 & SDHCI_QUIRK2_NO_1_8_V) { host->caps1 &= ~(SDHCI_SUPPORT_SDR104 | SDHCI_SUPPORT_SDR50 | SDHCI_SUPPORT_DDR50); + mmc->caps2 &= ~MMC_CAP2_HS200; } /* Any UHS-I mode in caps implies SDR12 and SDR25 support. */