Received: by 10.223.164.202 with SMTP id h10csp2356355wrb; Mon, 27 Nov 2017 16:04:39 -0800 (PST) X-Google-Smtp-Source: AGs4zMb0VJK2GdJ97mPOdZ4DQ4WOr0atVyyDyoQuoLbGfkzLxyLmRTdPxLbmKQOKg+0HF/57lfs9 X-Received: by 10.159.198.148 with SMTP id g20mr39991032plo.89.1511827479235; Mon, 27 Nov 2017 16:04:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511827479; cv=none; d=google.com; s=arc-20160816; b=PR9Zl0NpeVRBVN2mKZx0+qJuabSYTbckTkF+4ummRmxkREamdw21LMn3NF4Xzn0qn+ lEWpjoZ8uC9nRqFV5JPNUfdC9acYQeEHq5jTf0YzQLNTcLszBxs9dBhqMgTrcgq3++fW Woe/cnck1TA8qqt97gTZrrbHjGoJBm/A0ukrrKAPrucg6w5dhoxEAPlmrb7si8VejynO P6MOjUni/kxv0eJ+4msDEi9ut58cR16ElH/tI/Ptvuc/xHgZMlRdWxxdQ/7KggwWC1ON nuem+siTZ9RCJWEY1uOZo6VuuNRiQTmuOmwaydM6zXVUOM9b+5rodYEJb/NJqvmc4Usa 3SfA== 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=oAECoZdABGDrumK+q45DjKzZpmwl8T+K88nM4tMDvUFEfI6AoiJPZtGIJ+EtTXjYE1 LbSnUJlHWRxfPGy443C2/3j4IgS6M3EZkgFREKe0WbhKb+xqDSBL3epObUiRsvJJxLct UZKlTmqAtYphE7+Yxe4/Q2NVHGj7jsY0M0BfUSJboA1KHtYw+2n7cbbUkYJVhhDaa7P5 pdwtUgGLQxURVPkyiKepM7gbZ2olDP7sfzmw2JxrpjyTQgG2gzcN41vi/W7ZFIGdNy8x yFUKxW/IuHevVLj4l6GgkmX5RhaIcFkEiQkd6PLCMnPFuj+0lwM6ybIYxZJDE7YDTGgh zd3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DmQ0x0Bg; 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 w2si22818794plp.715.2017.11.27.16.04.26; Mon, 27 Nov 2017 16:04:39 -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=DmQ0x0Bg; 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 S1753208AbdK1ADI (ORCPT + 78 others); Mon, 27 Nov 2017 19:03:08 -0500 Received: from mail-wr0-f195.google.com ([209.85.128.195]:43427 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752988AbdK1ADF (ORCPT ); Mon, 27 Nov 2017 19:03:05 -0500 Received: by mail-wr0-f195.google.com with SMTP id z34so4896045wrz.10; Mon, 27 Nov 2017 16:03:04 -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=DmQ0x0Bg/2xpOXCymECangJxznt72QZcfmL7i8vmEGI5tk63HjCaQ40e7xbaEyOM4N 4aQp4CqfSg71br0XsBkUUe88Dk4gnllLGDP4FLt30+WSUFfaia5P3iIMoQXNaYShP9e9 x8X5TUT9yNLpsyFW1QzJ0VbCf9VAmvBaBBPPcLL/+o8bIOCVcS85yRbeaeionmHvXCif DYGP/4NPJXeH9t1G0VdRK8N1uHwLXA1sTdm4gEJxAbdQKCjcgLmRSsFLi4myHC1NQ73X aNnnFuFZZcSJJsY/ryjWgzrSGSXrIYui2MFm7ZsMNeX6JR2W61mCYAttLWcJ2aghKVVO +ljQ== 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=OSsv7v+mAdbKjEM6Sj9oSDFQ+bbBXhvEDdtjLiHQstojUww06JCqJcLezTn1bgzM3F SCNwlMcf+z7bFUvVB2lnjmiLHqSkTxVBA4aQgbRjD1CJbQzuHbu5RmRFUsWdYk1SuKod qjsm9XjSppliJwifu8F++4iznxg+TNe4IMPaJzzwW3hu4X+Un0GTl+fY8K1URhLlg9Fk eMHghI52kA2NMXltT7828K+8SxD4kAKUhDj4Z9qOnup5Kc/UEMPmxjm8l/1mXyNqhMjr lq214PNyD56292tMTvfTZgry5+VLgyMi0O5kIb6folNYeeHxMUtXof58NVoBW1enKXSK N+Uw== X-Gm-Message-State: AJaThX6bQbdN0qbCq/RNJqKxJFbglw6+WC13HFzu6hjHYuh7C8IbzpbO GSNebJp9s2X5ShA9ueuj6Dc= X-Received: by 10.223.190.135 with SMTP id i7mr2386958wrh.91.1511827384007; Mon, 27 Nov 2017 16:03:04 -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 68sm22970354wmh.2.2017.11.27.16.03.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 27 Nov 2017 16:03:03 -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 01:02:57 +0100 Message-Id: <1511827377-2021-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 1585265288969188468@xxx Mon Nov 27 23:53:10 +0000 2017 X-GM-THRID: 1585265288969188468 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread