From patchwork Mon Aug 25 03:02:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 4772331 Return-Path: X-Original-To: patchwork-linux-sh@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 E1638C0338 for ; Mon, 25 Aug 2014 03:02:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2D47020121 for ; Mon, 25 Aug 2014 03:02:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 52AED20114 for ; Mon, 25 Aug 2014 03:02:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753933AbaHYDCR (ORCPT ); Sun, 24 Aug 2014 23:02:17 -0400 Received: from mail-pa0-f51.google.com ([209.85.220.51]:58813 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753826AbaHYDCR (ORCPT ); Sun, 24 Aug 2014 23:02:17 -0400 Received: by mail-pa0-f51.google.com with SMTP id ey11so20309439pad.10 for ; Sun, 24 Aug 2014 20:02:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:message-id:from:subject:user-agent:mime-version:to:cc :in-reply-to:references:content-type; bh=EUBQctTkXWSk4eu9WYIjeZuLGAIGlh6oXh6arPlcqD4=; b=DirIl6/U5lhIwqX/aPJUTa/IVeImGBTRmyxzQUqI0a+yDOkQ7Dh6Sr1guk5oMEsVyw rxrXOvAzKZAFhqZ8h1pQXMglguAR83qRb64Yw52kRQdguKycomcgTdYGWVfKUfmsT+uR rCdd3qlevfvEpGuAWPxAtDOM7ESRlbQJBDjmnsGT7Cxv8fPUwAWZYa0bMFQLHJlFS1F7 KoaXXYcqcqhfhgWTQ/QWBpxPOKaRY5U0l97qHM1syJ6B7OQ6c7RQjbuh8aCkgYKFC18T QiU4Sv6koAFEWL+lji1M753Iscpa7M00e5FzS/KESlHws6M48qigZq76bDmonz1rAwH2 mu0w== X-Received: by 10.70.37.67 with SMTP id w3mr24617602pdj.107.1408935736960; Sun, 24 Aug 2014 20:02:16 -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 k3sm42204337pdb.18.2014.08.24.20.02.15 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 24 Aug 2014 20:02:16 -0700 (PDT) Date: Sun, 24 Aug 2014 20:02:16 -0700 (PDT) Message-ID: <871ts5tgp6.wl%kuninori.morimoto.gx@gmail.com> From: Kuninori Morimoto Subject: [PATCH 7/9 v3] mmc: tmio: remove SCLKEN bit setting from tmio_mmc_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 , Ulf Hansson Cc: Ian Molton , Morimoto , Magnus , Linux-SH , linux-mmc@vger.kernel.org In-Reply-To: <87bnr9tgwj.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> <87bnr9tgwj.wl%kuninori.morimoto.gx@gmail.com> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 TMIO clock is set via tmio_mmc_set_clock() -> tmio_mmc_clk_start(), and SCLKEN bit will be set on tmio_mmc_clk_start(). It is not needed on tmio_mmc_set_clock() function. The required clock setting will not be able to set in some clocks without this patch. Tested-by: Nguyen Xuan Nui Tested-by: Hiep Cao Minh Signed-off-by: Kuninori Morimoto --- v2 -> v3 - no change drivers/mmc/host/tmio_mmc_pio.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mmc/host/tmio_mmc_pio.c b/drivers/mmc/host/tmio_mmc_pio.c index b19d0cd..da3c74d 100644 --- a/drivers/mmc/host/tmio_mmc_pio.c +++ b/drivers/mmc/host/tmio_mmc_pio.c @@ -150,7 +150,6 @@ static void tmio_mmc_set_clock(struct tmio_mmc_host *host, int new_clock) for (clock = host->mmc->f_min, clk = 0x80000080; new_clock >= (clock<<1); clk >>= 1) clock <<= 1; - clk |= 0x100; } if (host->set_clk_div)