Received: by 10.223.164.202 with SMTP id h10csp2344015wrb; Mon, 27 Nov 2017 15:53:10 -0800 (PST) X-Google-Smtp-Source: AGs4zMZE5xaBkF0uZmVnJn8AyW6fN12noL2ltQ3vVvN1jFsGOPP3bvw4Xa9DfVH9Dj42PyVBO5yT X-Received: by 10.98.103.156 with SMTP id t28mr38362596pfj.234.1511826790673; Mon, 27 Nov 2017 15:53:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511826790; cv=none; d=google.com; s=arc-20160816; b=zcnveJ3RGag/GDBe5i1EFnzGu6t/L4k9BwDTCSGAjvG1o62cxJf//UvAP0c/ExDNdL U9AQPu2mSZOQHwpz51mi6SBFifBngL45d+DbrLYb2CjumBCrfRvrMy2/xXKLoqZJ6/H2 tn9imqBWohDVHAf6Q7wYjIbfAeSv9e4ju8HbYgBIVUn3POoHixtVIqjnvvGaveHZ/KCY cRPSs6aWvvzOCfnLWdFMjU8CnO1cpuvazGNXEO2A7CXkx7fNJfa/fWybf1UMMLrT5eUg b53XRJrOKI8na+tLHcJTPNQEj8mmygJ9yrhAgin7Xjbgo1kdpgIZ7FurgTvTD9LHN/uf oF5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=yIDfrHiVaVIe1XAbVSfpSl5i2LJsLG4hyrrPFetlxD0=; b=FRFYbAuL+3hL+0p6Jqc1PjJ5q2rFuNTJeaLkqIOBk6wW3uCm+JctVdAyb6lBnsDWiC tDhebpEzZ3OqkdSfB7TbKq2GpXu0mWiAmGozQ0Md9BBKoWBKWCa4NuM0Fux3tCiR6YEI 9QB6wAkhHgzqR6t6jnj7icD8PKHewOoQUCTsYaZAIDLsbxFYn3ZNL6z4zrzI5yY7lTo0 HwUQ+qfyanhMPxrPhp2bQDsx8CfeIRuY0fnAvTHISZH9LW2nTAyiMbLtLD+xzb6QBwFR 2NiimvMEzkTiDB/dAEl41p7+fEN1TGav8BSqQBSqrYMjPZte++KsI94xvmOBxBrZ7RDz surA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rNNgL6Uz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t6si23655038pgr.341.2017.11.27.15.52.58; Mon, 27 Nov 2017 15:53:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rNNgL6Uz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753126AbdK0XwS (ORCPT + 78 others); Mon, 27 Nov 2017 18:52:18 -0500 Received: from mail-wr0-f195.google.com ([209.85.128.195]:34842 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752953AbdK0XwP (ORCPT ); Mon, 27 Nov 2017 18:52:15 -0500 Received: by mail-wr0-f195.google.com with SMTP id w95so28195268wrc.2; Mon, 27 Nov 2017 15:52:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=yIDfrHiVaVIe1XAbVSfpSl5i2LJsLG4hyrrPFetlxD0=; b=rNNgL6UzT826I0PYpwrng46wykAeRpzpC2I0uSGa6aOY2p1BI4iR1uh1hupI+dZVHV ZQ32TMFCUiJHsM0H5OA76vBI+VKdFVS0Pe+PZq5Iy5qzTxhc4jZTNeXK6stKPWah0til GWOxj+8F702T6OhBTEaUDR+A4RKvgNqcj10pvaXn3TLe069UGXbXqE5J+7t3xzSJvnOK sAvfcHwSMKX5q9R4nQzSbiybDgmbcyHtltiwEzrjMe2gHmH7Qi23dwOsMFEmQQ0TZ0V7 oxissv7DdHoDm+Pv1pB0yhdbxSY723zAHQAkhCfOy83r+5QfbntmmPNS+RmYMDPfWBwC Sw2g== 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=yIDfrHiVaVIe1XAbVSfpSl5i2LJsLG4hyrrPFetlxD0=; b=RYakg5/XZaENPx3SZKq9jgdLBMUsY4Y47Qor69+z712n2vItiuX0BOWS99YvUGgbe4 pAjFw1K7LtSQr1gdsJXRfDxn3JN2LNaCdLJBo6ebSsn+dBLBM2KX+otXz1jBiG29J/pq AQ6Qw3fdSMV9J+HC+vs7aAbORp8rvmW3Cnt4OIZDK79dz5CPxIIwvEdAD7abYGmQpsxs mShtLuQ7lBPSJZsgDKDUyHjFZbpjearnAAO1Gq7nBsxgTxKhZ5KL9/tQmK5lyjHZQEIl 43eBwwhTs/vUJv6rY1G+l68ktAu7Qvsb42hg8QrIELER7Tn5MskCymODiIc+0OB/+TOO gWGw== X-Gm-Message-State: AJaThX4XfCVx1Mxansum1KkCdAjgud30WrP8jK5K8asRCpfE9iT0e6/H SFtnnXspNpDMM2u9nySDEj4= X-Received: by 10.223.193.141 with SMTP id x13mr14504665wre.239.1511826733813; Mon, 27 Nov 2017 15:52:13 -0800 (PST) Received: from localhost.localdomain (LFbn-1-8169-84.w90-112.abo.wanadoo.fr. [90.112.78.84]) by smtp.gmail.com with ESMTPSA id w76sm59884215wrc.79.2017.11.27.15.52.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 27 Nov 2017 15:52:13 -0800 (PST) From: Milan Stevanovic To: michal.simek@xilinx.com, adrian.hunter@intel.com, ulf.hansson@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, milan.o.stevanovic@gmail.com Subject: [PATCH] mmc: sdhci-of-arasan: Add sdhci_arasan_set_power Date: Tue, 28 Nov 2017 00:51:57 +0100 Message-Id: <1511826717-8777-1-git-send-email-milan.o.stevanovic@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The power register needs to have a valid voltage set even when the power supply is managed by an external regulator. Signed-off-by: Milan Stevanovic --- drivers/mmc/host/sdhci-of-arasan.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/mmc/host/sdhci-of-arasan.c b/drivers/mmc/host/sdhci-of-arasan.c index 0720ea7..fb57206 100644 --- a/drivers/mmc/host/sdhci-of-arasan.c +++ b/drivers/mmc/host/sdhci-of-arasan.c @@ -262,6 +262,17 @@ static int sdhci_arasan_voltage_switch(struct mmc_host *mmc, return -EINVAL; } +static void sdhci_arasan_set_power(struct sdhci_host *host, unsigned char mode, + unsigned short vdd) +{ + if (!IS_ERR(host->mmc->supply.vmmc)) { + struct mmc_host *mmc = host->mmc; + + mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, vdd); + } + sdhci_set_power_noreg(host, mode, vdd); +} + static const struct sdhci_ops sdhci_arasan_ops = { .set_clock = sdhci_arasan_set_clock, .get_max_clock = sdhci_pltfm_clk_get_max_clock, @@ -269,6 +280,7 @@ static const struct sdhci_ops sdhci_arasan_ops = { .set_bus_width = sdhci_set_bus_width, .reset = sdhci_arasan_reset, .set_uhs_signaling = sdhci_set_uhs_signaling, + .set_power = sdhci_arasan_set_power, }; static const struct sdhci_pltfm_data sdhci_arasan_pdata = { -- 2.7.4 From 1585487803765180004@xxx Thu Nov 30 10:49:57 +0000 2017 X-GM-THRID: 1585487344122780775 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread