Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp16074237rwd; Mon, 26 Jun 2023 05:32:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4KRcJFrBeSImIZyq7jVUC0nNhKga5zrgiIU/x6YZGTvFyOei8eUKLbq41V+yy5XY/FqHAh X-Received: by 2002:a17:90a:9ae:b0:25e:935f:8442 with SMTP id 43-20020a17090a09ae00b0025e935f8442mr25192741pjo.49.1687782739391; Mon, 26 Jun 2023 05:32:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687782739; cv=none; d=google.com; s=arc-20160816; b=hydfbi3aXcOyX7h9Vq366A3wyVbzFFXynk6yiWxmhIbY9ka19rTZ9PsyJbl/Qe6ZLN Wc8RSReMDdbBJBsoW9q/NECGNtljloJoBb6WmBbtpNALfhJDZY3o7m4SzZELgSquuGRN yQ0TxVeLrePTPSlbhpD8JOb1zc3JihEBg8Xwa5+18bHbC/nrotLAZwpVGSakpk8q+sw/ bzHCgWLc9Q353rbpGLBAiPdQyujudGVthNGRBVQPK05s/ZSoS7Mt97z3ygndCJvxGZgz NxN4ijW8SKIWA3gtvAPZpUAvtyjpr9/biDQfh3DroSE4sZGRU2RRkg/B9VLoAeoWmba7 8/cg== 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 :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from; bh=ca4AKKvl5g8tWSz5t+Uwp/7M8EqL+dpRgVHy/9U9jys=; fh=I0I/Qh/JvYyYUzXZBJHjDk1BJOSVXQ1OE9A569CO+/o=; b=S9ZrkubY33scusLxXJMFGCdOGgOg0Fbnyem0uQYCaOcTWr6523KGhngXSBlAIIaym3 oIrh8hQeOEu9u1I3aeKAQa0kET4OmdhBJi9lRj8C4aL3Ic/pMGBE1ttbDUvmcCnDSyi1 3GXDQKYpcFrTiWQ7O7peJksxwhgFgTwFjNn5bQ1/traxbVcQdr6ZeDq7q4AoB6ZvZ6oC MM1p3Ff4xcVnWoypUV2c/OhKe6zG4vfgnA2iw5rwuQM2MOXZE8BdI/2woDiRr4EW1IPU ChjjGKDCv59Nti7vr1e53Cd2GmaI8lVRB9nTD+kuD+51vM5o0nsxr3ge01fOOq4Crsl7 tCTw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y6-20020a17090a86c600b00256918d8db9si7126070pjv.17.2023.06.26.05.32.07; Mon, 26 Jun 2023 05:32:19 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231154AbjFZMYV convert rfc822-to-8bit (ORCPT + 99 others); Mon, 26 Jun 2023 08:24:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229651AbjFZMYD (ORCPT ); Mon, 26 Jun 2023 08:24:03 -0400 Received: from unicorn.mansr.com (unicorn.mansr.com [81.2.72.234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BBD12126; Mon, 26 Jun 2023 05:22:25 -0700 (PDT) Received: from raven.mansr.com (raven.mansr.com [81.2.72.235]) by unicorn.mansr.com (Postfix) with ESMTPS id 8A3AD15360; Mon, 26 Jun 2023 13:21:33 +0100 (BST) Received: by raven.mansr.com (Postfix, from userid 51770) id 144A4219FD1; Mon, 26 Jun 2023 13:21:33 +0100 (BST) From: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= To: Samuel Holland Cc: Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , linux-sunxi@lists.linux.dev, Michael Turquette , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Stephen Boyd , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 3/4] clk: sunxi-ng: Convert early providers to platform drivers References: <20211119033338.25486-1-samuel@sholland.org> <20211119033338.25486-4-samuel@sholland.org> Date: Mon, 26 Jun 2023 13:21:33 +0100 In-Reply-To: <20211119033338.25486-4-samuel@sholland.org> (Samuel Holland's message of "Thu, 18 Nov 2021 21:33:36 -0600") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Samuel Holland writes: > The PRCM CCU drivers depend on clocks provided by other CCU drivers. For > example, the sun8i-r-ccu driver uses the "pll-periph" clock provided by > the SoC's main CCU. > > However, sun8i-r-ccu is an early OF clock provider, and many of the > main CCUs (e.g. sun50i-a64-ccu) use platform drivers. This means that > the consumer clocks will be orphaned until the supplier driver is bound. > This can be avoided by converting the remaining CCUs to use platform > drivers. Then fw_devlink will ensure the drivers are bound in the > optimal order. > > The sun5i CCU is the only one which actually needs to be an early clock > provider, because it provides the clock for the system timer. That one > is left alone. > > Signed-off-by: Samuel Holland > --- > > (no changes since v1) > > drivers/clk/sunxi-ng/Kconfig | 20 ++++---- > drivers/clk/sunxi-ng/ccu-sun4i-a10.c | 58 +++++++++++++-------- > drivers/clk/sunxi-ng/ccu-sun50i-h6-r.c | 56 ++++++++++++-------- > drivers/clk/sunxi-ng/ccu-sun50i-h616.c | 33 ++++++++---- > drivers/clk/sunxi-ng/ccu-sun6i-a31.c | 40 +++++++++++---- > drivers/clk/sunxi-ng/ccu-sun8i-a23.c | 35 +++++++++---- > drivers/clk/sunxi-ng/ccu-sun8i-a33.c | 40 +++++++++++---- > drivers/clk/sunxi-ng/ccu-sun8i-h3.c | 62 ++++++++++++++-------- > drivers/clk/sunxi-ng/ccu-sun8i-r.c | 65 ++++++++++++++---------- > drivers/clk/sunxi-ng/ccu-sun8i-v3s.c | 57 +++++++++++++-------- > drivers/clk/sunxi-ng/ccu-suniv-f1c100s.c | 38 ++++++++++---- > 11 files changed, 332 insertions(+), 172 deletions(-) This broke the hstimer clocksource on A20 since it requires a clock provided by the sun4i ccu driver. -- M?ns Rullg?rd