Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp2928412rwi; Tue, 1 Nov 2022 13:35:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4BfmyGqXAgBdjldyueqcA5yRlJRV4GJrRJWAl3SoupY6bVvd3E1rIM8YV40NAAU7CGYO/x X-Received: by 2002:a17:906:edc2:b0:7ad:9f04:1c15 with SMTP id sb2-20020a170906edc200b007ad9f041c15mr19604181ejb.559.1667334927019; Tue, 01 Nov 2022 13:35:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667334927; cv=none; d=google.com; s=arc-20160816; b=J0PqTgeielpN1nB2i+Zlt88M5GHOZSDwRjijm6NsfUPvix1pIZxDnjcKgghtOp/7TL T/G2indsaPT4yjA5SPfCDEk0lLjD7V9ffPOtPhD3m+zA2Bd9pXLz69GRW9D35IpcXWhW fQBXZ3qf6I2zibI4H0SaBv/cVCf3QKNpInsUygJybla2Iy9/OX0UQckZVFrFkDPEGmTN 1yq4zmgdIyN8MPFjaK3lK2a69H9YcyqTwAWgUyOmi3rlmgoDABelXB5E6d2H7HRIrBJ5 /29EvrvVj6lAnp/bKcc4lvjeZpij+a9gaYoSncX1baYGZSjkEF8JzZ8JqfK5SRhrHbM0 Llrw== 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=OnhnDCARi1SHGfCOfq1wUCr5JDb84bNveYmRAJuiXeQ=; b=XnS3HXNvcASWhPT6aQ9ZSwVJIOJb0ZFco5dGMRuKhykWJ1ZxXG/FmghGqvLEl3Xn+d HsAIotHH6RRK3yxt9VFH3JF/c2eXQ2MusKgtZvkAN4aaSzy+ZP5Bw8y90hSTn7uEIxm7 nii5PJzwo3OjKMcLZj/JbiEDp2ym6WIrpt/Pu9wEpghc5dhemSOyGDCQOcg1VAvckf/m fhcj1nMSqBWZnxMIoaRsURNMS/WVhR5VFA6oMHr7bwgjcG/fQqD8XpsnMrfNYewCxq0+ wFhckm09ZNaQQxKj4eG0PpqQSW0i0LC5Jb3qScKUZLrPB6T2CyaVed3ELoORCQTq0XUM 3kHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b="CtDS//rG"; 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 ga23-20020a1709070c1700b007adffbaa908si92319ejc.916.2022.11.01.13.35.03; Tue, 01 Nov 2022 13:35:27 -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="CtDS//rG"; 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 S230175AbiKAUbo (ORCPT + 96 others); Tue, 1 Nov 2022 16:31:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230000AbiKAUbn (ORCPT ); Tue, 1 Nov 2022 16:31:43 -0400 Received: from aposti.net (aposti.net [89.234.176.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0D251CFC9; Tue, 1 Nov 2022 13:31:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1667334698; 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=OnhnDCARi1SHGfCOfq1wUCr5JDb84bNveYmRAJuiXeQ=; b=CtDS//rGDFIqK8Hw6/xNTRXwLJ94vLlvhho1KiuNJN4BoA4Trk7wkkNNhVMGl9xjizpE7c 6FSsJH9ungA/Oein3L9MOUrzFXP83d67P3AdB12lHtEN4dCVPZnff1+KmbhuaUmP4kf+Ps LsAT/GEYQ2lVodMHXKocBpRG5eVbyYI= Date: Tue, 01 Nov 2022 20:31:28 +0000 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: <20221101192216.5EE5DC433D6@smtp.kernel.org> References: <20221027192024.484320-1-lis8215@gmail.com> <20221027192024.484320-4-lis8215@gmail.com> <20221027215716.77250C433D6@smtp.kernel.org> <20221101192216.5EE5DC433D6@smtp.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; 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 mar. 1 nov. 2022 =C3=A0 12:22:14 -0700, Stephen Boyd =20 a =C3=A9crit : > 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 >> >> 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),=20 >> np); >> >> + if (!cgu) { >> >> + pr_err("%s: failed to initialise CGU\n",=20 >> __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. >>=20 >> See: 03d570e1a4dc ("clk: ingenic: Use CLK_OF_DECLARE_DRIVER macro") >>=20 >=20 > Does that mean this is also a simple-mfd? Yes - there's the USB PHY registers randomly in the middle of the=20 clocks IP. -Paul