Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1975126rwi; Fri, 28 Oct 2022 01:05:59 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6h9OR3KjQ7MFWsT7pdu8DKeHHQi4XdVcBEbp456KosOfU4zuLWhexrc4GX5SazCXeKiPz1 X-Received: by 2002:a17:907:94c1:b0:792:56d7:2879 with SMTP id dn1-20020a17090794c100b0079256d72879mr41345415ejc.144.1666944359185; Fri, 28 Oct 2022 01:05:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666944359; cv=none; d=google.com; s=arc-20160816; b=Jiv91P/g3iUFX2woDaT2iBanmi2y+kiAPQxq7VsxpsV7Kruc1kgt+Y09/Qa0tz6IZM e+jlyvytH+xOkDlCaYCBrFGDfgqgrfVaUFSKuKgAGkTSYEErMRbdfP2ZuG5knuCsHMfa ylC9Jg49Cvwgo6h37RHTGHiVlkdb89xIS6KuHeOAfeuL175KJQ7xeZzdfKZUWlyNZuW5 W8MHgEMaZuoQLfQEvM4FnzYbl7bYlLegE0sAn5HWGv8BX2Nnw6YFt2MPimXII5ikRRFR q04GBCGocyrxQSqFxgCnqFm26MA6Z5QX0cf+EpO858UJdhwISUfkUjGmTAvtNmK2hlBB SDQg== 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:cc:to:subject:from:date :dkim-signature; bh=biY8c9UIA8tRU0N6X5LV3ObrP5qOGMkHf6HMaHaU6fU=; b=qBfi58y3lBF/DjJZAOrrCgqXqWbgDswcnbNht6RJKkscC4X1ZF7RHxE4qCr5aJah84 Qj/aY8yi+Mp85nlG6nsTqQTlOuE08jEco6qadN4XQGpxBd3ZknuZ+H1Q0f6DgPAZWW6h pRb7XZlGuOSK1wOoZMxtQ4smqyuVaivWCiB2Fu7frAYfCXPaj+IVy9KOdFgJU9kLEXZO B++LK4vvtNRKe8KWe03vj3UBjGAkvNQvmCgfWDNI3a0nhEWwjui8Vp5Wlp8o2vqH2XEy vUsn8YfjlSAE0+fA2PPqz4wJghhfHdxGjJfqhfJKB+MI9O/2BaTrFvR8uZMdunfIJngt bO1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=T8ALAdRL; 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=crapouillou.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hd9-20020a170907968900b0077f4fcfe49csi4528004ejc.905.2022.10.28.01.05.31; Fri, 28 Oct 2022 01:05:59 -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=@crapouillou.net header.s=mail header.b=T8ALAdRL; 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=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230255AbiJ1Hsw (ORCPT + 99 others); Fri, 28 Oct 2022 03:48:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230229AbiJ1Hss (ORCPT ); Fri, 28 Oct 2022 03:48:48 -0400 Received: from aposti.net (aposti.net [89.234.176.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 154501BE1E0; Fri, 28 Oct 2022 00:48:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1666943325; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=biY8c9UIA8tRU0N6X5LV3ObrP5qOGMkHf6HMaHaU6fU=; b=T8ALAdRLQ3Qrz/Wa9O149SH/+i4hnqwKFlecDqEsJgO3GQstkdGJxbceRP8483YV16P31W V7eXajhrBo2nCa5+SNLBLEZ1ylh8yaaBDBfQanG+tMxKdWCKOctJTiFtPzJYNsYbQdt03N 0B2jVvf/kkaK7EHFOaJVPewvBaa9o6o= Date: Fri, 28 Oct 2022 08:48:35 +0100 From: Paul Cercueil Subject: Re: [PATCH v6 3/3] clk: Add Ingenic JZ4755 CGU driver To: 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 Message-Id: In-Reply-To: <20221027215716.77250C433D6@smtp.kernel.org> References: <20221027192024.484320-1-lis8215@gmail.com> <20221027192024.484320-4-lis8215@gmail.com> <20221027215716.77250C433D6@smtp.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Hi Stephen, Le jeu. 27 oct. 2022 =E0 14:57:14 -0700, Stephen Boyd =20 a =E9crit : > 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. See: 03d570e1a4dc ("clk: ingenic: Use CLK_OF_DECLARE_DRIVER macro") Cheers, -Paul