Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp18883720rwd; Wed, 28 Jun 2023 01:54:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Uk8jU9cMXs5gLpx8Yf5hD7CGNO7rZfsKWZIqFwXIPg/NN2JAH19ebAHjai2oPQeQ0SH+k X-Received: by 2002:a05:6a00:1483:b0:65d:d5cd:6f17 with SMTP id v3-20020a056a00148300b0065dd5cd6f17mr35915720pfu.24.1687942489088; Wed, 28 Jun 2023 01:54:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687942489; cv=none; d=google.com; s=arc-20160816; b=p+1g7vxxBLgkmVYtL4UalOyRBkGDdivqOAp9uEl452vnW3IEnke7f2oZrwnpoInenV w7eBTvclPQN8FK6ZinEd+yAefxgJpsqYB5oossAAd78AJneuvJrbImfGY1lFkbJ9fRFZ enOUuWhyX274DXHs5R3+xYRZoyJactguf9JdgI4m5YBkzh51EvcJM4gGHTcf7WG7Ziww 96LjygaHKfw52R5VZy8gRfBGFvK/RwF2wzRGWNK838RqHpE9uXvdzy8SVxKiRcx91AtT TOmcfw48DUSj+65XQqJnM7sH0vT+bMsDxYmIVLDoOojhCXHw5Bcd0rB6AmyMS1xSl/lj T8Zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=TkW7I5xEp9psN9WuyYosdr1fEi4AFNOf7PnuNhUUp80=; fh=ryMsrCqBwllC0n1qzg6tcVaqutzcaKbJqxgtT5JhQHA=; b=l6Tq7gynIhV3rtSvWLVV8h+VW1zg0PnKFh0DLUAmRDLUIV01xutikqw+VNKoHQXsVV nsL360FFxYMeH5//CNFrYZhtVwuo6a1HbJ5Ik3Ad93sicJdNwcNu9s5YiGv2YP3S92z1 DFH1WqI53J3nerB6KJZw7nRscudGafqFXeWNlMpsAiZUgLtzxV0A2G4mRwaeajbCI0hi CmgwpLabDzV4pBjfXVWxeUwb9knSnKdhJ0FDRt/1owhVe8xIsdkyChXyepCK4QBPtbHV BrXcfCc+jIPON4NEoRpeP4l8nJWVzhF2kyo5BjeJMtuuTP5GUUO11zwQmxMaV0WMVmxx RwXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qjMlEnes; 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 p7-20020a056a000b4700b0067d204bf281si3251749pfo.3.2023.06.28.01.54.37; Wed, 28 Jun 2023 01:54:49 -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=qjMlEnes; 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 S229622AbjF1ICp (ORCPT + 99 others); Wed, 28 Jun 2023 04:02:45 -0400 Received: from dfw.source.kernel.org ([139.178.84.217]:44636 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232786AbjF1H7v (ORCPT ); Wed, 28 Jun 2023 03:59:51 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 80F8B61331; Wed, 28 Jun 2023 07:44:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7F264C433C8; Wed, 28 Jun 2023 07:44:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687938262; bh=ePwte3hrhMRziyfeeDbbH3c5avzzRC0gIsBYcHlC9js=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qjMlEnesyK9P+AFJZDUq00Qv7DFOoMq6ry7r+9WCXSqcUqAptsBa2G+J6AXCIKA9W 8D+GnaHBh+6RIKisxsCWnGAmEk5BO78SXlHoGzHSSvQeLc49aTCMvjJthF2dVIAoRw 9gnQ6Tt3MjkldESuFSecBALzpffGtoe1QomDSuZK33ACMt2eZWflhvrlT3z6I3g7Yi g5c88ledeW63xvTC2vAkYgaKWR7l5zeMaGDDAu4emO99xAbO7/fzY/tB5p5vOh1rf5 NmoqrrRp7zVourImRSsBDs1SwOjEz0Xf1NCRCQYSpX7H3KyzEaA+beATg/HNpzmZEx d32LGGb8NJLSQ== Date: Wed, 28 Jun 2023 09:44:18 +0200 From: Maxime Ripard To: =?utf-8?B?TcOlbnMgUnVsbGfDpXJk?= Cc: Samuel Holland , 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 Message-ID: References: <20211119033338.25486-1-samuel@sholland.org> <20211119033338.25486-4-samuel@sholland.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="oyafrdifo4lqltls" Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --oyafrdifo4lqltls Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 26, 2023 at 01:21:33PM +0100, M=E5ns Rullg=E5rd wrote: > Samuel Holland writes: >=20 > > 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(-) >=20 > This broke the hstimer clocksource on A20 since it requires a clock > provided by the sun4i ccu driver. The A10 is probably broken by this, but the A20 should be able to use the arch timers just like all the other Cortex-A7-based SoCs. Do you have a dmesg log that could help debug why it's not working? Maxime --oyafrdifo4lqltls Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCZJvk0gAKCRDj7w1vZxhR xUNZAQCPJxji/u47iktYmhrmFscqGGbXgQkRSC/fP3nBs/RnnwEAqbOxrzh8lF3J naqyI7DLolA/9Bf37opYB4Lh1y4PIQw= =juQ0 -----END PGP SIGNATURE----- --oyafrdifo4lqltls--