From patchwork Wed Jan 25 15:12:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 92457 Delivered-To: patches@linaro.org Received: by 10.140.20.99 with SMTP id 90csp2253634qgi; Wed, 25 Jan 2017 07:12:30 -0800 (PST) X-Received: by 10.46.33.75 with SMTP id h72mr16363372ljh.37.1485357150890; Wed, 25 Jan 2017 07:12:30 -0800 (PST) Return-Path: Received: from mail-lf0-x229.google.com (mail-lf0-x229.google.com. [2a00:1450:4010:c07::229]) by mx.google.com with ESMTPS id s25si14836870lfi.178.2017.01.25.07.12.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Jan 2017 07:12:30 -0800 (PST) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::229 as permitted sender) client-ip=2a00:1450:4010:c07::229; 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::229 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-x229.google.com with SMTP id z134so130469152lff.3 for ; Wed, 25 Jan 2017 07:12:30 -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; bh=MyGe8s4lpu0IflCkylR8078ZOZWZ/NgtbVKDfG9LegU=; b=YpZX9Hcx/F8iLuDuj/oR9/GhoYtxgXuSIsP1FMpoYai38juSPBrQ143+Un5LAEOnw0 usqUy7/rGhT4CYAxKeCQYTrBYLectNU0TSZEN0TyMEAjmfPEipUjRWGtZPkNtIkdnN23 TwcbUgcKGT32sZTF32YaQYZ82Pq+5UK/4dpfs= 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; bh=MyGe8s4lpu0IflCkylR8078ZOZWZ/NgtbVKDfG9LegU=; b=Pe3BV5QrEnroPCSWJF1qyh3Q2vMT2RUtIwasrGXmC2Ni8Izrqu7fRhndoeNAIA/M8y UMEd8n0EKsXbJi0wZepPsddaOk8y7dc3VAx5NS291zrvtwwHVrooLrAsMsRt6zsiowwr I2ggwt+37rDnwvrQb9V81eSulmsKzoTloN/9+7Asr0mkS4g43R1QfGR1JG2oGm4Zz4zV Og+3qNyhjEZ7PnOuSQ4Co024urUk2y0QjjLLyRbz/s0s+fwD7rBPhgnZRyz8WzMj+UhW W509+1n3TF2o6kHQ75WSwjPoHwSkbsBl5FAWA+ez9i004TPD2aPrspLhgJUgFqwbNPBr 8Q9w== X-Gm-Message-State: AIkVDXL+xTMfgzUNWcscYQevvscqBXSHTqhQs4MwDoU7zuCaYUdOya09uYgWBSTsUP6wY/GeGbc= X-Received: by 10.25.17.29 with SMTP id g29mr6262968lfi.10.1485357150450; Wed, 25 Jan 2017 07:12:30 -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.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Jan 2017 07:12:29 -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 0/6] mmc: core: Enable mmc hosts to specify support for eMMC DDR 3.3V Date: Wed, 25 Jan 2017 16:12:17 +0100 Message-Id: <1485357143-23280-1-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 It's been reported that some mmc hosts don't support a VCCQ (signal voltage) of 1.8V for eMMC DDR mode, but instead only 3.3V. According to the JEDEC spec, an eMMC card must support both if any, which makes the mmc host being the potential limitation. Therefore, let's invent a new mmc cap, MMC_CAP_3_3V_DDR, and a new corresponding DT binding, which tells whether 3.3V is supported for the VCCQ. In the context of these changes, I took the opportunity to make some clean-ups of some related code. Ulf Hansson (6): mmc: core: Remove redundant code in mmc_set_signal_voltage() mmc: core: Clarify usage of mmc_set_signal_voltage() mmc: core: Rename __mmc_set_signal_voltage() to mmc_set_signal_voltage() mmc: core: Invent MMC_CAP_3_3V_DDR mmc: dt: Document binding for eMMC DDR 3.3V I/O voltage support mmc: core: Extend mmc_of_parse() to check for mmc-ddr-3_3v Documentation/devicetree/bindings/mmc/mmc.txt | 1 + drivers/mmc/core/core.c | 19 ++++++------------- drivers/mmc/core/core.h | 4 ++-- drivers/mmc/core/host.c | 2 ++ drivers/mmc/core/mmc.c | 27 +++++++++++++++------------ drivers/mmc/core/sd.c | 3 +-- drivers/mmc/core/sdio.c | 3 +-- include/linux/mmc/host.h | 21 ++++++++++----------- 8 files changed, 38 insertions(+), 42 deletions(-) -- 1.9.1 Reviewed-by: Shawn Lin Tested-by: Jan Glauber