From patchwork Thu Aug 23 04:44:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 144863 Delivered-To: patch@linaro.org Received: by 2002:a2e:164a:0:0:0:0:0 with SMTP id 10-v6csp685327ljw; Wed, 22 Aug 2018 21:45:26 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYzD1nsI3CsQ7yPf22Mv5Gu7+Xl7dBsQPCH76jNphjs+qiP1Xow18a+Xqf6VfnMuO2Vf1bP X-Received: by 2002:a62:6781:: with SMTP id t1-v6mr3530335pfj.200.1534999525889; Wed, 22 Aug 2018 21:45:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534999525; cv=none; d=google.com; s=arc-20160816; b=Yt1FqX/YyCeRRrmzTJbOB9RWOBZkoL2jybnPQfvynpFIo6ocRBmYHTvpouvl326ouU 2LJrgkPtuKTmndrjNJL4gNpelqOmJZ7IqfIMqixSN05b7mTr1uDbtepVOsx/GOS9yjAL cBql5LD9E/5obj6tx8kNSqLKS5jQwO77bK83kz60sSgt2TPzsLdUXFoCldMZbTIbkz8d WuCzvaa3FUQl9T5KDr+khRjLlVnpn1uvTuAvwa9JIkfOn+Hkx2YuBuYaVMKIhsIWb5Oh HHgyld/hiDiNxiv/POOCMninPCmhRdYDaHFsY0IggUaNXLBenEcEYValPVD4iQLo+Dii kY3Q== 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=3RFm8PqDdIMPfI9yBT9mzsZLOE48GRm+/5k59NIGrIs=; b=Va++bdVqHiYHaMyemRVQWbwg7aNOmCQ/15m0AAmkoZRwnbXuw2F4FHz2C6TM5njEQB iPtTK67MeqF7y6ahJh3KwvHrSdW9P+77SjSyrt5p4JYm+HP9SpQo6+4HWbUgs6RLMfF/ KIGht0rj1qgKrWR0ZmVYbfj7UOrpdAqjolQHYt6hRlIpCJzDppJdPEJk60tuLFy/X79d lOhOH4vig/f+HTtyJW4IjmWShAa4cTGsItzPn2SqSG3UOdyiBniYuRfX+gBXJryc3uLR r7dz0MbsM3tREZhGbgyGarWvCwmNE3maRHnynCWOGjO76vU1aYY7iySd6JkjUo1HMcps QU/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Hz+J26dy; spf=pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-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 b6-v6si3213950pls.267.2018.08.22.21.45.25; Wed, 22 Aug 2018 21:45:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mmc-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=Hz+J26dy; spf=pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728261AbeHWINK (ORCPT + 5 others); Thu, 23 Aug 2018 04:13:10 -0400 Received: from conuserg-09.nifty.com ([210.131.2.76]:47260 "EHLO conuserg-09.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728201AbeHWINK (ORCPT ); Thu, 23 Aug 2018 04:13:10 -0400 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-09.nifty.com with ESMTP id w7N4ilM1021677; Thu, 23 Aug 2018 13:44:48 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com w7N4ilM1021677 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1534999489; bh=3RFm8PqDdIMPfI9yBT9mzsZLOE48GRm+/5k59NIGrIs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Hz+J26dyCu0EJ5X4ghF3OJA+ZuKyXftGHSc3apxJ6vLXpCskOJRqx6+z/3wcuQ/Wl sYULhq6dRImvKaPVOqXX1ZRReXHVjv+oxGep89KdjFxBDitKxzXtjelofLHEfJe7u1 jc39rBCrAtqUSjvsgXK5DkyK2hB8Mka5FsGCjT/Y1FVdiwHG/uL75iXr/ZNtMg5JFt oKLO4iX1zhGmeM0r+n6gQURStxrPcpRA4m18irfnZFcKOT9CeLGQNp8jtTuyY0cqia 386it6NZsr1dDso4TSO1u4t9mYqbcNzU3OFD29x2mA8rt6pA/ca/ErXpdkV9726D6N jyqcKDrul2NIg== 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: [PATCH v3 1/6] mmc: tmio: replace tmio_mmc_clk_stop() calls with tmio_mmc_set_clock() Date: Thu, 23 Aug 2018 13:44:15 +0900 Message-Id: <1534999460-15111-2-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1534999460-15111-1-git-send-email-yamada.masahiro@socionext.com> References: <1534999460-15111-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@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 Reviewed-by: Wolfram Sang --- Changes in v3: None Changes in v2: None 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 261b4d6..5717ffa 100644 --- a/drivers/mmc/host/tmio_mmc_core.c +++ b/drivers/mmc/host/tmio_mmc_core.c @@ -1043,7 +1043,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); @@ -1310,7 +1310,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); @@ -1394,7 +1394,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);