From patchwork Wed Jan 25 15:12:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 92463 Delivered-To: patches@linaro.org Received: by 10.140.20.99 with SMTP id 90csp2253744qgi; Wed, 25 Jan 2017 07:12:41 -0800 (PST) X-Received: by 10.46.33.136 with SMTP id h8mr16155902lji.57.1485357161820; Wed, 25 Jan 2017 07:12:41 -0800 (PST) Return-Path: Received: from mail-lf0-x234.google.com (mail-lf0-x234.google.com. [2a00:1450:4010:c07::234]) by mx.google.com with ESMTPS id k30si4111046lfi.236.2017.01.25.07.12.41 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Jan 2017 07:12:41 -0800 (PST) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::234 as permitted sender) client-ip=2a00:1450:4010:c07::234; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::234 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by mail-lf0-x234.google.com with SMTP id x1so43804543lff.0 for ; Wed, 25 Jan 2017 07:12:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=F9cXCwY0em5vGbNh8XhOIqGz5CQGf4w96WFhJis6QaE=; b=ddwH2E3VXlQ7IDqxYI9RUzfYgJny0aCjjaMet6X+b9VLIxCShXGfn8WalgiXDWn2Ni +A7Q/lUUCwf+42WwhO+OWAol6AORivz+ZRIlsLp1iWVAqNbZfXqODEyEtDRgcY+U0cDd KUGb2wBEhx7if815pKq27fDlRCQQpUL71AZZo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=F9cXCwY0em5vGbNh8XhOIqGz5CQGf4w96WFhJis6QaE=; b=bjkX0NcEM0L+o296pD8x0v/Z753T6mxvvPpNym/VCQo/WDpL4W4d/79MFAVZyiIjYk hA3OHBwLSU1ke+PvTqN2E3wmYG1xl7FYIa1Bx3NlSGVMNgnGlKrBgIj341WiKtl5lfDJ hpIYwcHE5klm9BfdtqZR8HzZl7xiLcfXA4/tAKd8nSvO1il+xDa2v/V26MmtX/LSZ3wS SG6XEnkl0xu37/okSM2dbyeBlWmMTV7QSeVUSqDYcSJovZh/aaRG2x/0lvFwRa4+1tcK ftD12t7n1gTGmpESyuRydu7InHwOCWNM5iCkKbIdqwTJoMuJTjcj6H2Ov3Ue8rIiJOug eSfw== X-Gm-Message-State: AIkVDXLCZ+NZRtMDFGdtJbaFtmf0HLrQ40DbgQ+ga4Xpz33oNs4gHvZHbKDWe15B0Tymrgc+Xf4= X-Received: by 10.46.76.1 with SMTP id z1mr15279043lja.48.1485357161394; Wed, 25 Jan 2017 07:12:41 -0800 (PST) Return-Path: Received: from uffe-Latitude-E6430s.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id u126sm8397687lja.25.2017.01.25.07.12.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Jan 2017 07:12:40 -0800 (PST) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson Cc: Jaehoon Chung , Adrian Hunter , Shawn Lin , Stefan Wahren , Fabio Estevam , Jan Glauber Subject: [PATCH 6/6] mmc: core: Extend mmc_of_parse() to check for mmc-ddr-3_3v Date: Wed, 25 Jan 2017 16:12:23 +0100 Message-Id: <1485357143-23280-7-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1485357143-23280-1-git-send-email-ulf.hansson@linaro.org> References: <1485357143-23280-1-git-send-email-ulf.hansson@linaro.org> When mmc_of_parse() finds the binding, it sets the mmc cap, MMC_CAP_3_3V_DDR, which informs the core whether eMMC DDR at 3.3V I/O is supported by the mmc host. Signed-off-by: Ulf Hansson --- drivers/mmc/core/host.c | 2 ++ 1 file changed, 2 insertions(+) -- 1.9.1 diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c index 98f25ff..8f75a84 100644 --- a/drivers/mmc/core/host.c +++ b/drivers/mmc/core/host.c @@ -301,6 +301,8 @@ int mmc_of_parse(struct mmc_host *host) if (of_property_read_bool(np, "wakeup-source") || of_property_read_bool(np, "enable-sdio-wakeup")) /* legacy */ host->pm_caps |= MMC_PM_WAKE_SDIO_IRQ; + if (of_property_read_bool(np, "mmc-ddr-3_3v")) + host->caps |= MMC_CAP_3_3V_DDR; if (of_property_read_bool(np, "mmc-ddr-1_8v")) host->caps |= MMC_CAP_1_8V_DDR; if (of_property_read_bool(np, "mmc-ddr-1_2v"))