Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp2863881rwi; Tue, 1 Nov 2022 12:43:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4t8AWz6cUu9tLlrsS0oRJKfDcOdWqXR8cyriYnXrR7QjPpdmSfYz+BiE5Mhz91PE2RafTh X-Received: by 2002:a17:907:6297:b0:72f:9aad:fcb with SMTP id nd23-20020a170907629700b0072f9aad0fcbmr19538870ejc.161.1667331835516; Tue, 01 Nov 2022 12:43:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667331835; cv=none; d=google.com; s=arc-20160816; b=FJTg/EqMatc2IghgWu3c7agO3DkTilw1Ui4WpZadtuL1QzuXYarurJ2V9+dIAFsOHF nmQiaUkz7ly/dD5DQS/zUp/RTBgK4jofCCrvXLCcFbTeS137OrE2leLv0fuOu0121J7J FQ9pAql92IAz6C1E6SRdKIqannlx7yAgbFk/zOT/HBM2EXN2MUx+5Q58vGfGcrJPON0o YvlYv9Z6muX5qe//2EEyokkMjTmHisou7JtACbbaRCEM6An1dVo5QeVIXn+zTq7iUkdR lpJMM/Bs1OVRdz/5pHs+au2sHqMtiV2Za/zrIWzuDqEihEV8kUh/ASbDQypb0iRETv5Q 6Enw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=IwfEtI7VG5NYrkRRJ3mzLyiPOUlQqJ7mXdsmfjLkeZI=; b=BkFJiN1mrE/M71oIYz+blUeag/g4X+xn9V0pilNcOvOPBdu00N13ia9W7LjUfAd9nc 22vEuIkU96VJT+7vsrDNBQgj+3kVCsXsfaBeFWLFxHN+N/VWNylx3k5lro3JpYLiIUR9 tW2zJWatx9EiuWIvXaSMZtea8JfM6M9aQMZUocUHAOWxJrVKaUNOH01P8uFYLcyxsc4t CgY6op7gDnf9Wy9f4O51pqEntdfSPT0rDSoHhCco1qrKVJ/mA8yIal/tcFgKT698sgYz 8mCDrQ1q3ncUPMI22lDzOdyCu6lb9mk9RpUjRuhk11CIJwsmUBavEnE++eLA5eXm2KEl 8m1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KaqT8v6z; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l16-20020a170906795000b007ade0bd02easi7648952ejo.371.2022.11.01.12.43.31; Tue, 01 Nov 2022 12:43:55 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KaqT8v6z; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230054AbiKATWV (ORCPT + 97 others); Tue, 1 Nov 2022 15:22:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbiKATWS (ORCPT ); Tue, 1 Nov 2022 15:22:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 660CC1C93C; Tue, 1 Nov 2022 12:22:17 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0C65F61705; Tue, 1 Nov 2022 19:22:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5EE5DC433D6; Tue, 1 Nov 2022 19:22:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667330536; bh=rzMpc3yyGF71lY7u/blmIwz+eJhbF9m5RL7Pl44fz0M=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=KaqT8v6ze0W8xaqIdyEs3+njmgpSmGE/13pvzPzBBpWFl9CAVJnchldF1ONTPCAE0 izA9dXVNw/Nq7sd9jI4NJDNSjS5WfebeT6+u2VDleROJfpDNpkOxTA7L/M5+9aP0fI bpGO2L1bgsSdxHpRrW1Br12lRX0dl0sww86LOcxcuVTNtDOYwrkH2K5EJBvWeqLcso JLqu8mE4jy2T/3uIoRNQE7Tr6vv3bJXx7PhO2k3ou8sWeXJ2tIp7p1+2ab6/xUEG6r bP+lpsbpV8jmhQI7rs2LsCUhtiMJ3NsOqH6vZceDGLu74hOj4EYQM6mjIcd6H66mxB faghF4Z8C0fmA== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: <20221027192024.484320-1-lis8215@gmail.com> <20221027192024.484320-4-lis8215@gmail.com> <20221027215716.77250C433D6@smtp.kernel.org> Subject: Re: [PATCH v6 3/3] clk: Add Ingenic JZ4755 CGU driver From: Stephen Boyd Cc: Siarhei Volkau , Siarhei Volkau , Michael Turquette , Rob Herring , Krzysztof Kozlowski , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org To: Paul Cercueil Date: Tue, 01 Nov 2022 12:22:14 -0700 User-Agent: alot/0.10 Message-Id: <20221101192216.5EE5DC433D6@smtp.kernel.org> X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,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 Quoting Paul Cercueil (2022-10-28 00:48:35) > Hi Stephen, >=20 > Le jeu. 27 oct. 2022 =EF=BF=BD 14:57:14 -0700, Stephen Boyd =20 > a =EF=BF=BDcrit : > > Quoting Siarhei Volkau (2022-10-27 12:20:23) > >> diff --git a/drivers/clk/ingenic/jz4755-cgu.c=20 > >> b/drivers/clk/ingenic/jz4755-cgu.c > >> new file mode 100644 > >> index 000000000..d2eb3ae0c > >> --- /dev/null > >> +++ b/drivers/clk/ingenic/jz4755-cgu.c > >> @@ -0,0 +1,346 @@ > > [...] > >> +static void __init jz4755_cgu_init(struct device_node *np) > >> +{ > >> + int retval; > >> + > >> + cgu =3D ingenic_cgu_new(jz4755_cgu_clocks, > >> + ARRAY_SIZE(jz4755_cgu_clocks), np); > >> + if (!cgu) { > >> + pr_err("%s: failed to initialise CGU\n", __func__); > >> + return; > >> + } > >> + > >> + retval =3D ingenic_cgu_register_clocks(cgu); > >> + if (retval) > >> + pr_err("%s: failed to register CGU Clocks\n",=20 > >> __func__); > >> + > >> + ingenic_cgu_register_syscore_ops(cgu); > >> +} > >> +CLK_OF_DECLARE_DRIVER(jz4755_cgu, "ingenic,jz4755-cgu",=20 > >> jz4755_cgu_init); > >=20 > > Is there another driver that probes this device?=20 > > CLK_OF_DECLARE_DRIVER() > > is for the situation where we want to probe this device again with > > another platform driver. Please add a comment indicating what that=20 > > other > > driver is. >=20 > See: 03d570e1a4dc ("clk: ingenic: Use CLK_OF_DECLARE_DRIVER macro") >=20 Does that mean this is also a simple-mfd?