From patchwork Tue Dec 26 13:30:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Grinberg X-Patchwork-Id: 10133127 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9E59260211 for ; Tue, 26 Dec 2017 13:31:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8BF3A29C30 for ; Tue, 26 Dec 2017 13:31:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7BE772CDCE; Tue, 26 Dec 2017 13:31:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F377D2CD5E for ; Tue, 26 Dec 2017 13:30:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=ZiX6SyRvh+LI3yjGZGGWCrD9b1UrSv32vM2yXOIxinY=; b=exo Br3jhasn0KgMYhbEH3PgD+0EWPt+2pjFG89zpl7C/lA2WCUeOpMmEF8PnKNfHITSgsoc3C6HNJHzW yHpg9FprgZxXWr/g7A2p/2UwaZnf1msCoXA3FC19GT88vRy30qyki9hF/nxt5zq319V4v+lNI5oFQ nGXKtwNz5IheWV3UszqoclW5mdV5tAgSupWOjA4FHDbBNITcr9a7UOScBgMVyVthgKnT/34wSonlJ hXYng9mKGEmDaMSpK22uw8MyWS/Ce2CjYuHnVMCf3HPOFKv/bqkw3fKjqUEgImQf/ZnucPyXSaUH/ xAfn/3XE/AfWs+jMggfaIxqKwPeRzTQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eTpJo-0004Pp-IZ; Tue, 26 Dec 2017 13:30:56 +0000 Received: from softlayer.compulab.co.il ([50.23.254.55] helo=compulab.co.il) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eTpJk-0004NL-PJ for linux-arm-kernel@lists.infradead.org; Tue, 26 Dec 2017 13:30:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=compulab.co.il; s=default; h=Message-Id:Date:Subject:Cc:To:From:Sender: Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=HkpbJDKz7mrH5UJau7fMOaNrAOCSXnjEZmo/ntGN70Q=; b=rZiO1mF7VAH0gkmARq/L2A+wV2 1gF4iAshFl1FwmUzVg/HS6XPZz3CSeGqyvwBAZaiLF39Y+OycquC989gjmQsM000mDmPYfc0v9K0A PNDvM4M1V3IhBKRn1xn6i2lEBw2OhLON+ikk2hiLThIs44gBqAwwPgkSYVwUvNjGm5aaVt4TMo6dI iWuYa4+k+UCPs64TEIUgJosTx9s1EfskZymeuvCp1W7UOdu358v7lMMdhhq59mpASXklvFiyBwal1 G5yyNFoWzxkElu/S6RYgIZhZ2qNxhU4gMkvgHkjO4Z/Af9FaHxDwj9j3MRPKZKfhhiTN9Kd4YQBYY akPMWsDw==; Received: from [37.142.126.90] (port=35320 helo=zimbra-mta.compulab.co.il) by softlayer.compulab.co.il with esmtp (Exim 4.87) (envelope-from ) id 1eTpJY-00014T-V7; Tue, 26 Dec 2017 15:30:41 +0200 Received: from localhost (localhost [127.0.0.1]) by zimbra-mta.compulab.co.il (Postfix) with ESMTP id B8EA548236E; Tue, 26 Dec 2017 15:30:39 +0200 (IST) Received: from zimbra-mta.compulab.co.il ([127.0.0.1]) by localhost (zimbra-mta.compulab.co.il [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id c_12iwc0wrWB; Tue, 26 Dec 2017 15:30:39 +0200 (IST) Received: from localhost (localhost [127.0.0.1]) by zimbra-mta.compulab.co.il (Postfix) with ESMTP id 55A5148236F; Tue, 26 Dec 2017 15:30:39 +0200 (IST) X-Virus-Scanned: amavisd-new at zimbra-mta.compulab.co.il Received: from zimbra-mta.compulab.co.il ([127.0.0.1]) by localhost (zimbra-mta.compulab.co.il [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id mkC99L4WDIBt; Tue, 26 Dec 2017 15:30:39 +0200 (IST) Received: from compulab.co.il (grinberg-linux.compulab.local [192.168.11.13]) by zimbra-mta.compulab.co.il (Postfix) with SMTP id 289D748236E; Tue, 26 Dec 2017 15:30:39 +0200 (IST) Received: (nullmailer pid 11504 invoked by uid 1000); Tue, 26 Dec 2017 13:30:39 -0000 From: Igor Grinberg To: Michael Turquette , Stephen Boyd Subject: [PATCH] clk: pxa: unbreak lookup of CLK_POUT Date: Tue, 26 Dec 2017 15:30:36 +0200 Message-Id: <20171226133036.11432-1-grinberg@compulab.co.il> X-Mailer: git-send-email 2.13.6 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - softlayer.compulab.co.il X-AntiAbuse: Original Domain - lists.infradead.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - compulab.co.il X-Get-Message-Sender-Via: softlayer.compulab.co.il: acl_c_recent_authed_mail_ips_text_entry: grinberg@compulab.co.il|compulab.co.il X-Authenticated-Sender: softlayer.compulab.co.il: grinberg@compulab.co.il X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171226_053052_913040_20D889C3 X-CRM114-Status: UNSURE ( 8.14 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Haojian Zhuang , Daniel Mack , Robert Jarzmik , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Igor Grinberg MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Since switching to clk drivers, the CLK_POUT cannot be searched for by clk_get() API and thus it returns with ENOENT. Register it with the clk_lookup and thus unbreak the users of it. Signed-off-by: Igor Grinberg Acked-by: Robert Jarzmik --- drivers/clk/pxa/clk-pxa3xx.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/clk/pxa/clk-pxa3xx.c b/drivers/clk/pxa/clk-pxa3xx.c index 42bdaa772be0..2d126df2bccd 100644 --- a/drivers/clk/pxa/clk-pxa3xx.c +++ b/drivers/clk/pxa/clk-pxa3xx.c @@ -329,12 +329,16 @@ static void __init pxa3xx_dummy_clocks_init(void) static void __init pxa3xx_base_clocks_init(void) { + struct clk *clk; + pxa3xx_register_plls(); pxa3xx_register_core(); clk_register_clk_pxa3xx_system_bus(); clk_register_clk_pxa3xx_ac97(); clk_register_clk_pxa3xx_smemc(); - clk_register_gate(NULL, "CLK_POUT", "osc_13mhz", 0, OSCC, 11, 0, NULL); + clk = clk_register_gate(NULL, "CLK_POUT", + "osc_13mhz", 0, OSCC, 11, 0, NULL); + clk_register_clkdev(clk, "CLK_POUT", NULL); clkdev_pxa_register(CLK_OSTIMER, "OSTIMER0", NULL, clk_register_fixed_factor(NULL, "os-timer0", "osc_13mhz", 0, 1, 4));