From patchwork Tue Aug 7 06:17:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 143556 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp4112139ljj; Mon, 6 Aug 2018 23:18:17 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf5GU7n24jTcBrrdXZOpt37eahpMHgG29hteJjKHTz645qYtSK5Lpryj9PVojPDap5IhNbk X-Received: by 2002:a62:4255:: with SMTP id p82-v6mr20620861pfa.238.1533622696917; Mon, 06 Aug 2018 23:18:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533622696; cv=none; d=google.com; s=arc-20160816; b=T50jO63bwAS+tBlpaEyk9MJetw4eQ1Xkl2W/FgS4TPiPIwHT3gbJWybYvlH5CQVUd6 anUYN2kjpnrb3yNVbZs3UFmYmnevLZG1ZxkLrclGKzbxY3eN5bLNqdHG+oMNg49UPUcK 3Rihj+OHDfxFY/uPR1XURKIAHokABI+shxR7bFHeUQ/BEYm4NZOb/IE5mCubh6eQe/5n +UwHZGkwiSjgovJryD1lph58zGM/Cj0DygiDkyP6Gwmod6CFV7+t7nXqAhr9UDnPTRBa qVfDU/vpA61NTSdUWTOhpVTHjJ4swXizRbhp4O76KT1OPBhjzP8RE6TK5OeS43yanyS7 uRNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=axiRk/auNLIILoxR066vuZblruWMrcKW6nODEHtIVxU=; b=dPm9NOmneDY/DdFZ0djXe8dqj1GCugfyTan5rLM3qUGsMq80M+q673DqS0l4wUd5iT 9DOeN8XlBeQj2RBneMyKv/g9TxVgiEpslkuZ4PRhENotYjeQFK8EfiRqx0OlGbma9KdI HDU4Vd/oacyRwxhRq2qulRTbG7Edu7lEZ2EJR+7jcjEQyquMVsB4wicr52/+nYI5WUtm F2EgMS2FdvFQIdOB/d7Iy3rfpcB0RCdiK70fzS2zdVUEaOrjsHqmK6jdSqn0Gfk3XTT1 Air2L2xHAo42y8vcCKROmraUq6IdQ6Cr9+sxU9jrMgEgUEvQ59LHw+6NTghOu72vbTUX kzGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=QNWdhTNi; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f2-v6si564105pgg.552.2018.08.06.23.18.16; Mon, 06 Aug 2018 23:18:16 -0700 (PDT) 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=@nifty.com header.s=dec2015msa header.b=QNWdhTNi; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388522AbeHGIa7 (ORCPT + 31 others); Tue, 7 Aug 2018 04:30:59 -0400 Received: from conuserg-08.nifty.com ([210.131.2.75]:39276 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388232AbeHGIa5 (ORCPT ); Tue, 7 Aug 2018 04:30:57 -0400 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id w776HYgd009463; Tue, 7 Aug 2018 15:17:35 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com w776HYgd009463 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1533622656; bh=axiRk/auNLIILoxR066vuZblruWMrcKW6nODEHtIVxU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QNWdhTNiqZ68oJPzh+6OGe5InQZdXnBE4c0j9H1Tk2F/J55l7GeO98Rc9ux/qxGBh e/qceztMXnfwzjWjyGx6YRqAnedic6aZ7nMWynRTtIyLfDKDsd62yJ5Sgpgp1PDzuc 1J2AeEBCWUfdEZkL+ITngDbqboLN5r9o5UKcDcfmkf5IJRDxVZ/ARRCWYh3kPsdzg1 MEyvpS6kkrPpkLCX+ESCCGQRtVCGwRmGf+dNQdcQzeD5Uvmq51jjhbuuHx1x0Fn3P6 MVzMm3a8V5R1J5N2+uk/66tdantGNaVVAn585cIV9z7Vd4BVrJp4BIy/g76xPIqGJn 8jr0ROh3Y5fbw== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Wolfram Sang , linux-mmc@vger.kernel.org Cc: Ulf Hansson , linux-renesas-soc@vger.kernel.org, Masami Hiramatsu , Jassi Brar , Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [v0.1 PATCH 1/7] mmc: tmio: replace tmio_mmc_clk_stop() calls with tmio_mmc_set_clock() Date: Tue, 7 Aug 2018 15:17:16 +0900 Message-Id: <1533622642-13989-2-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1533622642-13989-1-git-send-email-yamada.masahiro@socionext.com> References: <1533622642-13989-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tmio_mmc_clk_stop(host) is equivalent to tmio_mmc_set_clock(host, 0). This replacement is needed for the next commit. Signed-off-by: Masahiro Yamada --- drivers/mmc/host/tmio_mmc_core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.7.4 diff --git a/drivers/mmc/host/tmio_mmc_core.c b/drivers/mmc/host/tmio_mmc_core.c index 3cb554c..991b340 100644 --- a/drivers/mmc/host/tmio_mmc_core.c +++ b/drivers/mmc/host/tmio_mmc_core.c @@ -1032,7 +1032,7 @@ static void tmio_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) switch (ios->power_mode) { case MMC_POWER_OFF: tmio_mmc_power_off(host); - tmio_mmc_clk_stop(host); + tmio_mmc_set_clock(host, 0); break; case MMC_POWER_UP: tmio_mmc_power_on(host, ios->vdd); @@ -1269,7 +1269,7 @@ int tmio_mmc_host_probe(struct tmio_mmc_host *_host) if (pdata->flags & TMIO_MMC_SDIO_IRQ) _host->sdio_irq_mask = TMIO_SDIO_MASK_ALL; - tmio_mmc_clk_stop(_host); + tmio_mmc_set_clock(_host, 0); tmio_mmc_reset(_host); _host->sdcard_irq_mask = sd_ctrl_read16_and_16_as_32(_host, CTL_IRQ_MASK); @@ -1353,7 +1353,7 @@ int tmio_mmc_host_runtime_suspend(struct device *dev) tmio_mmc_disable_mmc_irqs(host, TMIO_MASK_ALL); if (host->clk_cache) - tmio_mmc_clk_stop(host); + tmio_mmc_set_clock(host, 0); tmio_mmc_clk_disable(host);