From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabio Estevam Subject: Re: [PATCH v2] mmc: core: Do not set mmc voltage to 1.8V when 'no-1-8-v' is present Date: Mon, 15 Jun 2015 09:23:01 -0300 Message-ID: References: <1434227067-9600-1-git-send-email-festevam@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from mail-la0-f49.google.com ([209.85.215.49]:35442 "EHLO mail-la0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753933AbbFOMXD (ORCPT ); Mon, 15 Jun 2015 08:23:03 -0400 Received: by labko7 with SMTP id ko7so56643123lab.2 for ; Mon, 15 Jun 2015 05:23:01 -0700 (PDT) In-Reply-To: Sender: linux-mmc-owner@vger.kernel.org List-Id: linux-mmc@vger.kernel.org To: Ulf Hansson Cc: Dong Aisheng , Kevin Lemoi , Otavio Salvador , Sascha Hauer , Russell King - ARM Linux , "Dong, Chuanxiao" , linux-mmc , Fabio Estevam Hi Ulf, On Mon, Jun 15, 2015 at 9:08 AM, Ulf Hansson wrote: > What card (eMMC, SD, MMC) and which host driver is being used here? It is an eMMC and the host driver is sdhci-esdhc-imx.c. >> --- a/drivers/mmc/core/host.c >> +++ b/drivers/mmc/core/host.c >> @@ -527,6 +527,8 @@ int mmc_of_parse(struct mmc_host *host) >> host->caps2 |= MMC_CAP2_HS400_1_8V | MMC_CAP2_HS200_1_8V_SDR; >> if (of_find_property(np, "mmc-hs400-1_2v", &len)) >> host->caps2 |= MMC_CAP2_HS400_1_2V | MMC_CAP2_HS200_1_2V_SDR; >> + if (of_find_property(np, "no-1-8-v", &len)) >> + host->caps2 |= MMC_CAP_3_3V_ONLY_DDR; > > Do you intend to use 3.3V as the I/O voltage level for an eMMCs > running in DDR mode? Isn't that violation of the eMMC spec? Yes, I would like to use 3.3V as the I/O voltage level for an eMMC in DDR mode. This was the behaviour prior to 312449efd16bb0, which I would like to keep so that our custom board based on mx6sl could work. It works fine with 3.14 kernel, but not on 4.1-rc due to the fact that the board cannot provide 1.8V level, hence 'no-1-8-v' property is passed in the device tree. With this patch applied 3.3V is applied and the eMMC can successfully operate in 3.3V DDR mode. Regards, Fabio Estevam