From patchwork Sun Aug 19 14:09:05 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 178563 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 509452C00A6 for ; Mon, 20 Aug 2012 00:12:38 +1000 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T36By-0000pm-GT; Sun, 19 Aug 2012 14:09:26 +0000 Received: from mail-yw0-f49.google.com ([209.85.213.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1T36Bu-0000oT-50 for linux-arm-kernel@lists.infradead.org; Sun, 19 Aug 2012 14:09:22 +0000 Received: by yhjj52 with SMTP id j52so5071034yhj.36 for ; Sun, 19 Aug 2012 07:09:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=t9CadReta3w8JQnlFqsU/awAQ/DsP5edF6TmPJBVk7U=; b=mTdYmwiWnAL6JYP6wBQob1+AtzqTugiJDJ9yNhKP8KTDg4eDWxED5+pvcqRXCdk2d5 8I2nVOlk90IZplZp9CTXpmBeSVTXjF7ujrX6zXirckLYCQK7k55UsDWq+abtT39Cihdj CEdEFcHHeqAmw4ddp53ZfrPZS0NuTP1fIxz3HD8o2REb/7vdavxxqG6rZrZpbb8GoubH 8RBi/Y8kY6RHyr0c0yUQHXLusG2Mx88e1WT6lBqzAxXrgopxICGOZR9BcAEn4PdWg/Dt 0VbCPqeUw6z+aRdWN4VzRKpuJuG3lOmEIaC9lFBN0D7zPq8TCRf9zUjHOb9KR9G6PU2e /cWQ== Received: by 10.236.181.225 with SMTP id l61mr16813345yhm.47.1345385360441; Sun, 19 Aug 2012 07:09:20 -0700 (PDT) Received: from localhost.localdomain ([189.101.148.2]) by mx.google.com with ESMTPS id a4sm11755398anm.14.2012.08.19.07.09.18 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 19 Aug 2012 07:09:19 -0700 (PDT) From: Fabio Estevam To: kernel@pengutronix.de Subject: [PATCH 1/2] ARM: clk-imx35: Fix SSI clock registration Date: Sun, 19 Aug 2012 11:09:05 -0300 Message-Id: <1345385346-25412-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.7.9.5 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (festevam[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.213.49 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Fabio Estevam , broonie@opensource.wolfsonmicro.com, linux-arm-kernel@lists.infradead.org, u.kleine-koenig@pengutronix.de X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org From: Fabio Estevam SSI block has two types of clock: ipg: bus clock, the clock needed for accessing registers. per: peripheral clock, the clock needed for generating the bit rate. Currently SSI driver only supports slave mode and only need to handle the ipg clock, because the peripheral clock comes from the master codec. Only register the ipg clock and do not register the peripheral clock for ssi. Signed-off-by: Fabio Estevam --- arch/arm/mach-imx/clk-imx35.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-imx/clk-imx35.c b/arch/arm/mach-imx/clk-imx35.c index c6422fb..f7910df 100644 --- a/arch/arm/mach-imx/clk-imx35.c +++ b/arch/arm/mach-imx/clk-imx35.c @@ -230,10 +230,8 @@ int __init mx35_clocks_init() clk_register_clkdev(clk[ipu_gate], NULL, "mx3_sdc_fb"); clk_register_clkdev(clk[owire_gate], NULL, "mxc_w1"); clk_register_clkdev(clk[sdma_gate], NULL, "imx35-sdma"); - clk_register_clkdev(clk[ipg], "ipg", "imx-ssi.0"); - clk_register_clkdev(clk[ssi1_div_post], "per", "imx-ssi.0"); - clk_register_clkdev(clk[ipg], "ipg", "imx-ssi.1"); - clk_register_clkdev(clk[ssi2_div_post], "per", "imx-ssi.1"); + clk_register_clkdev(clk[ssi1_gate], NULL, "imx-ssi.0"); + clk_register_clkdev(clk[ssi1_gate], NULL, "imx-ssi.1"); /* i.mx35 has the i.mx21 type uart */ clk_register_clkdev(clk[uart1_gate], "per", "imx21-uart.0"); clk_register_clkdev(clk[ipg], "ipg", "imx21-uart.0");