From patchwork Tue Jul 29 08:47:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 4639151 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 26B30C0338 for ; Tue, 29 Jul 2014 08:47:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4D310201B9 for ; Tue, 29 Jul 2014 08:47:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7A90A2018E for ; Tue, 29 Jul 2014 08:47:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751556AbaG2Irc (ORCPT ); Tue, 29 Jul 2014 04:47:32 -0400 Received: from mail-pd0-f178.google.com ([209.85.192.178]:65221 "EHLO mail-pd0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751038AbaG2Irb (ORCPT ); Tue, 29 Jul 2014 04:47:31 -0400 Received: by mail-pd0-f178.google.com with SMTP id w10so11465519pde.9 for ; Tue, 29 Jul 2014 01:47:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:sender:message-id:from:subject:user-agent:mime-version:to:cc :in-reply-to:references:content-type; bh=aWPvb/U1L8q2Nd79XYCxgYWfZYf3XsRSgTWaidkm2Fc=; b=GVxJBIhbpw+TKfsOykM0HrwcdiYlNX1RtHfJgOkfw5fCHfJ52yHacCBHzjlqvH/Q5o dAfMR/LRcCt0zeHHLZGsQzKwuaKJxJwbpMcZAu/U3rnTvtbZ8x+9zI5C0kiaBtNLmgci TKvJ82wJfRAfYs2g50m+a1OejLDoJdMdcJgI0F4FfxU0mY+vlK19z7KZBCBs8qZrJfW2 d4wmCuYa05wKjChZYXJLARnGqyTf9DdnZ/oGTSLXw0AfNEwqRIXCzZt7wgoTdgMbFQBl YAGMfTjEdejKIcTines+9vWqxJeB88Xidsj5UQ2GOCkrsEIjuWLdofhLuG2jAvib5Tje 9u/A== X-Received: by 10.70.43.37 with SMTP id t5mr609668pdl.98.1406623651258; Tue, 29 Jul 2014 01:47:31 -0700 (PDT) Received: from remon.gmail.com (49.14.32.202.bf.2iij.net. [202.32.14.49]) by mx.google.com with ESMTPSA id xy4sm75498129pac.19.2014.07.29.01.47.28 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 29 Jul 2014 01:47:30 -0700 (PDT) Date: Tue, 29 Jul 2014 01:47:30 -0700 (PDT) Message-ID: <87a97so8kf.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 09/10 v2] mmc: tmio: ensure that the clock has been stopped before set_clock User-Agent: Wanderlust/2.14.0 Emacs/23.3 Mule/6.0 MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") To: Simon , Chris Ball Cc: Ian Molton , TOSHIAKI KOMATSU , NAOYA SHIIBA , Magnus , Linux-SH , (Renesas) goda , linux-mmc@vger.kernel.org, ryo.kataoka.wt@renesas.com, shinobu.uehara.xc@renesas.com, kouei.abe.cp@renesas.com, cm-hiep@jinso.co.jp, Kuninori Morimoto , Kuninori Morimoto In-Reply-To: <87mwbso8sp.wl%kuninori.morimoto.gx@gmail.com> References: <87simtenpi.wl%kuninori.morimoto.gx@renesas.com> <87pphxe2q0.wl%kuninori.morimoto.gx@renesas.com> <53AD638C.5060907@renesas.com> <87egxehsec.wl%kuninori.morimoto.gx@gmail.com> <87mwbso8sp.wl%kuninori.morimoto.gx@gmail.com> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Kuninori Morimoto This patch ensures that the clock has been stopped before it calls tmio_mmc_set_clock(). The clock settings might be failed without this patch Signed-off-by: Kuninori Morimoto --- drivers/mmc/host/tmio_mmc_pio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/host/tmio_mmc_pio.c b/drivers/mmc/host/tmio_mmc_pio.c index da3c74d..1c5a631 100644 --- a/drivers/mmc/host/tmio_mmc_pio.c +++ b/drivers/mmc/host/tmio_mmc_pio.c @@ -895,6 +895,7 @@ static void tmio_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) } if (host->power == TMIO_MMC_OFF_STOP) tmio_mmc_reset(host); + tmio_mmc_clk_stop(host); tmio_mmc_set_clock(host, ios->clock); if (host->power == TMIO_MMC_OFF_STOP) /* power up SD card and the bus */