Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp17227rdh; Wed, 25 Oct 2023 14:41:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH9h2cOe0bCX3iZ1U65h04vB6eUUZZap+8Jr0d7Jf2lJFgSQnXL27LeS9EYc12Dm5oEE5U0 X-Received: by 2002:a25:9189:0:b0:d9a:bfe4:d827 with SMTP id w9-20020a259189000000b00d9abfe4d827mr15433950ybl.19.1698270095465; Wed, 25 Oct 2023 14:41:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698270095; cv=none; d=google.com; s=arc-20160816; b=TP2g8WC6M2/se0WZ7CKNsroffOnf2L+gH8ErFhuxCXFD7hGRWMKOyf1H/tn+3BMCUY KWoS0m7t4HvyqpuUYGFwLjoybLRNV9/KZN09IVP6qKxyknStw5kQ0pq/vWalZy3sZ0WK mct1v2nX0vSlM6u4qSfuCMYmcqcjYnDau7qoYoS6ocyrgCKZZY5aq0Bwjs92LvhTZVoy CjtwWnX3a5/TB7+gOGmqxejKWsP+4lOBmIyIFgK+lue8/Na/TFvnZqml7TYWdekIuEdL dsXpbawHmkapDvOy3TdC/h+85KsP+cNZZQX6PcSnISJ2EJj7QEjVkyhWDZk0da9345xi buGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:date:to:cc:from:subject:references :in-reply-to:content-transfer-encoding:mime-version:message-id :dkim-signature; bh=yLyaWcWD+Fj16IaQY0We9xLX75jtIF1BkenMk8QT/us=; fh=pAx2k6kwYUQHph5CRxAnzPTVcw5P02hQY/2WYouR0lQ=; b=wJSVSNnmNnREzV/0qEiSzDxt26D3nYuqqhdeNVftSfm1utDX6oUUWV+fwMqL0Q3bsT 8puvIRHZXTgMGomK32DPc/OUDs/3+JO+Gkdp3IwZ9sZLmCiHqO9KAmVOsxohzjVut5dU swC+IgrvH1fXfQeRsmTd9Nh0pJrIn9pxFV9LB6iMeow8s97ZmxBC81ahutWrUTI2tV5/ 0g8o172AjZXAFp/CUcjeI+iu0IChwsgItzcaOIeuYe5Ik0Uql/uwP9ZlcNE7Wt7+Phwj /VH+WaQqDE4N/aCDoFe8QOurl6ZIh3KKD5LN3zZogYYRHe9KZ8xPklTVnhHdRcBbc0As 9mIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OeJhxYPb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id l18-20020a252512000000b00da03c21d5ffsi5585920ybl.335.2023.10.25.14.41.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 14:41:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OeJhxYPb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id E831C80756D4; Wed, 25 Oct 2023 14:40:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230236AbjJYVkg (ORCPT + 99 others); Wed, 25 Oct 2023 17:40:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229672AbjJYVke (ORCPT ); Wed, 25 Oct 2023 17:40:34 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16B1B132; Wed, 25 Oct 2023 14:40:33 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9F36DC433C7; Wed, 25 Oct 2023 21:40:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698270032; bh=ObgKYH0fS2mj/mvGmpx0d95XPn9BwP7C8YrKDWzCovk=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=OeJhxYPboBK9ff7+ZjAslTD2fIqdeh0FrTxfSIPime7vzUJU/fooEUtZSFrjba7m1 2kV+6SB9OXWRiwWJId/Ufw8gFs7dSeo4T9a8IoB/FKWTv4f7r8V3Pf/q+ggoD6l7xG /lDRH8qUW7a0/9ALY0UYkKK/mCqCrgO5wfYuETCef92QYbtd9pSjUWOYDUEAncfSrd yraO/WFH1lJC1TYbeasVWZrfjTKy5bYbOHoc1NwRNwnRjgbftW9WB9iUwDX9/0ZEsh 4fb+bFJrq4WNZZmiD8meyc90OC1TPxTaxt355RZH+l7+sZnzGaNiVXkNR8ZpWViiPT IFFTM3zuxWGlA== Message-ID: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20231025194849.4esjw4w2trgalp55@mercury.elektranox.org> References: <20231018070144.8512-1-zhangqing@rock-chips.com> <20231025194849.4esjw4w2trgalp55@mercury.elektranox.org> Subject: Re: [PATCH v4 0/4] rockchip: add GATE_LINK From: Stephen Boyd Cc: conor+dt@kernel.org, heiko@sntech.de, kever.yang@rock-chips.com, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, robh+dt@kernel.org, zhangqing@rock-chips.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, huangtao@rock-chips.com, andy.yan@rock-chips.com To: Sebastian Reichel Date: Wed, 25 Oct 2023 14:40:30 -0700 User-Agent: alot/0.10 X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 25 Oct 2023 14:40:43 -0700 (PDT) Quoting Sebastian Reichel (2023-10-25 12:48:49) > Hello Stephen, >=20 > On Mon, Oct 23, 2023 at 06:47:17PM -0700, Stephen Boyd wrote: > > Quoting Elaine Zhang (2023-10-18 00:01:40) > > > Recent Rockchip SoCs have a new hardware block called Native Interface > > > Unit (NIU), which gates clocks to devices behind them. These effectiv= ely > > > need two parent clocks. > > > Use GATE_LINK to handle this. > >=20 > > Why can't pm clks be used here? The qcom clk driver has been doing that > > for some time now.=20 > >=20 > > $ git grep pm_clk_add -- drivers/clk/qcom/ >=20 > Maybe I'm mistaken, but as far as I can tell this is adding the > dependency on controller level and only works because Qualcomm > has multiple separate clock controllers. In the Rockchip design > there is only one platform device. >=20 > Note, that the original downstream code from Rockchip actually used > pm_clk infrastructure by moving these clocks to separate platform > devices. I changed this when upstreaming the code, since that leaks > into DT and from DT point of view there should be only one clock > controller. >=20 Why can't the rockchip driver bind to a single device node and make sub-devices for each clk domain and register clks for those? Maybe it can use the auxiliary driver infrastructure to do that?