Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1412776rwi; Thu, 27 Oct 2022 15:41:46 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4JjhrykKCQYbbHny7TsIkiOqqPrzx2efbD4YALXxztgonyT0tH7UaVWR6+WzUxo/n4n1fh X-Received: by 2002:a63:1b58:0:b0:45f:e7ba:a223 with SMTP id b24-20020a631b58000000b0045fe7baa223mr42359956pgm.548.1666910505972; Thu, 27 Oct 2022 15:41:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666910505; cv=none; d=google.com; s=arc-20160816; b=QK1fsooBlwvlGjWzSaoD63BEKxx1R3Jn0OGW0qL08sYYoazj+Xc07sm+QGxdjoXOJx UdPwTA6XYifpdCtdLMaqCa4zLYNKLMmiS+iIrmMu3ssxaw931JJwrTNrFcO2A/4a1i0o qJkQC9Fpmplh2QSO8k3jn/m2PA+POiZv9+ndJTNC0O1eWXll2al15tzjtGGy4r7M7o9O buBg527Xvg7VqwuwSfV35QyjW7Gbg9qMOPIKhrKBQy87DU6MqOSg/0IPOttLRdEa3bV1 KftOj7BaRV1aZa5xENyWetxn1h3nYQWMossM7LdmpQDchoHbLRoZo0rKHUyHMkT9b6qv vaqw== 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=82hZRV5L4LE5AUdh4CeqHPdZG/UVhYEvXDsSCKPSzPA=; b=Nnac+xWuN8+Atuzerbz0oduP94+jLrWv4l1jGRf4YoP5gFiF5gTGlx+SDqx1LzJ+MP jhAN4L3e1PWWMJlivQGsCwp6FYnXXT2LUF3I8obabw+97iojmuGM+zcAPWGNBD9LulKZ /8Ed5Jjv3t9XiBLV0zP5Y+ertnzwZlQqyo1CcGWQgBPJxltIhmUdJ8JAIIumjLAZkLax zo/8T4520rGXsba7IKRinKIUDePDfe/AOk51oQhaafwl6PmyL0fQjM8qOETSSQirMc15 rH7alWkt5ZGVjxpOeAGnH35/DakECmvyjU/y0flRlsj5EgU5drGzJCEh5djNt0+xmyn/ 357g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Avu+f+kb; 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 hk7-20020a17090b224700b00205f49b70fdsi3398765pjb.127.2022.10.27.15.41.34; Thu, 27 Oct 2022 15:41:45 -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=Avu+f+kb; 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 S237141AbiJ0V5U (ORCPT + 99 others); Thu, 27 Oct 2022 17:57:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236639AbiJ0V5T (ORCPT ); Thu, 27 Oct 2022 17:57:19 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18E63915DC; Thu, 27 Oct 2022 14:57:19 -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 ams.source.kernel.org (Postfix) with ESMTPS id CA767B826AC; Thu, 27 Oct 2022 21:57:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77250C433D6; Thu, 27 Oct 2022 21:57:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666907836; bh=pMcZ3lkUN+LKNn4Gtp1ga/opwaCEMemcT9ZPw3DrnXs=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=Avu+f+kbJ2KSLy0gElbOxcWnteIUIwNVcCxLq9JRw2j2mfAgaYdRKwMaB607eGxQu 3Oz/7rKtot3X9iC0lMjPysHWSgdZy+2Dh2OXhzO3YFd00SkuCmp7QVL5MG4F64eNiD mmZerD7i65IeXCKqYrU5Pj3YSUJrMHcJmPDms6qqjs6TSMzx9z0RNwy1TXAaLw0Ojp 7CIOTAi3rqMDPFWg+jJWnfynRNDWBMyeuyBhT5eWXDL1Jc0Ntby1ZGVeXgPiRzDbUG 5DQfazsJTKaDInpnjybshajEvyzhzcvJkCh2qiFaif9yOPqTBeal8pR63FGpmWJF79 H7Ug50hGjllcg== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20221027192024.484320-4-lis8215@gmail.com> References: <20221027192024.484320-1-lis8215@gmail.com> <20221027192024.484320-4-lis8215@gmail.com> Subject: Re: [PATCH v6 3/3] clk: Add Ingenic JZ4755 CGU driver From: Stephen Boyd Cc: Siarhei Volkau , Michael Turquette , Rob Herring , Krzysztof Kozlowski , Paul Cercueil , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org To: Siarhei Volkau Date: Thu, 27 Oct 2022 14:57:14 -0700 User-Agent: alot/0.10 Message-Id: <20221027215716.77250C433D6@smtp.kernel.org> X-Spam-Status: No, score=-7.6 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 Siarhei Volkau (2022-10-27 12:20:23) > diff --git a/drivers/clk/ingenic/jz4755-cgu.c b/drivers/clk/ingenic/jz475= 5-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", __func__); > + > + ingenic_cgu_register_syscore_ops(cgu); > +} > +CLK_OF_DECLARE_DRIVER(jz4755_cgu, "ingenic,jz4755-cgu", jz4755_cgu_init); Is there another driver that probes this device? 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 other driver is.