Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp270568rwb; Mon, 28 Nov 2022 20:41:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf6l7MDwQWEEm1552FiafuEsVA/AIjlNDaJNHN4giusDHx4arBOqdi1u0v8HZzmVCuqQvZiK X-Received: by 2002:a63:fa0b:0:b0:46b:2493:14ad with SMTP id y11-20020a63fa0b000000b0046b249314admr50022496pgh.274.1669696914622; Mon, 28 Nov 2022 20:41:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669696914; cv=none; d=google.com; s=arc-20160816; b=CUxDShekm53wwo3Yhg8ZMlB3sPhxAsAblTpZObAy8SM0S19K4y69SRsTxqY2igj16h +KpUOgIsz7GC0zlcQBKucjsHz0EbNsEtnCiicwnDUkrF8VzlC788pRQ7ImuE3vTc8Mom GBcdNbUfjMJ+LTEp6sajkzCSUOqlbbH0Di5V01qLKXr1feJiSIMmlldbWeRQIKyWSk+C NfMUwJKgAZtruwGifRZj+Hos5yB0PnPBuoo0B8XNDid3rBCO9lonXxX51mCicesnAv1s 4tRWQmvmvO9fdXMI3h5oC7agb4K6tTJAgSL6tMEuXKRBFSN8G2EjMvmQmYa1sXr3Saxk 3enA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from; bh=Mr6HVYd5LNJ9wZqEHZ+CfTmIHerGIUVNRCuIj/dLWzY=; b=qyBDYZpxDF/UCtMMFl0iQmItJUjCYm28RqCoKofQBiFub3wix7gZS1OMvVeFIGKqfW dKsNeSrdYVKIx4oVOSE/+eKFJdMyLk6KA6dfUWi9Tx0/mmOG1J+liOCRb1S4PSpbjhxh Rcz0qjEQwb/T82rzT+4jS0XFt5afoXNfm5UFQlphd10TjbbGzsPcDqoNsssTgHk36mFy zzZ8GZ5O3+ei0vDZUTuu+Vd4t1XCVt0u94jjoS3B8F3sqo5+w/kU9CNB3f5MSrS7SVzT QMwXdL2mBG8jG4TNiVGlnrJ0sWTb7IT/FAkX3s241fAumY+YOVcyhrRE0BbGP81rL3u4 hvCQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x8-20020a170902820800b00189655d7144si10833107pln.161.2022.11.28.20.41.42; Mon, 28 Nov 2022 20:41:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235556AbiK2DmO (ORCPT + 82 others); Mon, 28 Nov 2022 22:42:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235532AbiK2DmG (ORCPT ); Mon, 28 Nov 2022 22:42:06 -0500 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D3A5F4B779; Mon, 28 Nov 2022 19:42:04 -0800 (PST) Received: from loongson.cn (unknown [10.180.13.64]) by gateway (Coremail) with SMTP id _____8BxXeuLf4VjbOgBAA--.4562S3; Tue, 29 Nov 2022 11:42:03 +0800 (CST) Received: from localhost.localdomain (unknown [10.180.13.64]) by localhost.localdomain (Coremail) with SMTP id AQAAf8AxPuCGf4VjjecdAA--.10584S4; Tue, 29 Nov 2022 11:42:02 +0800 (CST) From: Yinbo Zhu To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Huacai Chen , WANG Xuerui , Jiaxun Yang , Jianmin Lv , Yang Li , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, loongarch@lists.linux.dev, Yinbo Zhu Subject: [PATCH v10 3/4] LoongArch: time: add of_clk_init in time_init Date: Tue, 29 Nov 2022 11:41:56 +0800 Message-Id: <20221129034157.15036-3-zhuyinbo@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20221129034157.15036-1-zhuyinbo@loongson.cn> References: <20221129034157.15036-1-zhuyinbo@loongson.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8AxPuCGf4VjjecdAA--.10584S4 X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvdXoW7Wr4UWFyruw17uw47ZFy5Arb_yoWfZrg_uw 17Cw1DWryfJ39ak34vq3ZxXw1jkw48tFn0vas7Zr17CFn7J3yUCw43Z343ArnI9as29rs5 ZrWrGF97Cr13KjkaLaAFLSUrUUUUnb8apTn2vfkv8UJUUUU8wcxFpf9Il3svdxBIdaVrn0 xqx4xG64xvF2IEw4CE5I8CrVC2j2Jv73VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUY C7CY07I20VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r126r13M28lY4IEw2 IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Xr0_Ar1l84AC jcxK6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM2 8EF7xvwVC2z280aVCY1x0267AKxVW8Jr0_Cr1UM2kKe7AKxVWUAVWUtwAS0I0E0xvYzxvE 52x082IY62kv0487Mc804VCY07AIYIkI8VC2zVCFFI0UMc02F40EFcxC0VAKzVAqx4xG6I 80ewAv7VC0I7IYx2IY67AKxVWUtVWrXwAv7VC2z280aVAFwI0_Cr0_Gr1UMcvjeVCFs4IE 7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCY1x0262kKe7AKxVWUAVWUtwCF04k20xvY0x 0EwIxGrwCF04k20xvE74AGY7Cv6cx26rWl4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1l4IxYO2xF xVAFwI0_JF0_Jw1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWw C2zVAF1VAY17CE14v26r1q6r43MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Gr0_ Xr1lIxAIcVC0I7IYx2IY6xkF7I0E14v26r4j6F4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJV WUCwCI42IY6I8E87Iv67AKxVWxJVW8Jr1lIxAIcVC2z280aVCY1x0267AKxVW8Jr0_Cr1U YxBIdaVFxhVjvjDU0xZFpf9x07UKXd8UUUUU= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Loongson-2 clock controller driver used CLK_OF_DECLARE to register clock subsystem that ask of_clk_init was called in time_init and this patch was to addd such support. Signed-off-by: Yinbo Zhu --- arch/loongarch/kernel/time.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/loongarch/kernel/time.c b/arch/loongarch/kernel/time.c index 786735dcc8d6..09f20bc81798 100644 --- a/arch/loongarch/kernel/time.c +++ b/arch/loongarch/kernel/time.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include @@ -214,6 +215,8 @@ int __init constant_clocksource_init(void) void __init time_init(void) { + of_clk_init(NULL); + if (!cpu_has_cpucfg) const_clock_freq = cpu_clock_freq; else -- 2.31.1