Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1942435ybz; Thu, 30 Apr 2020 08:08:58 -0700 (PDT) X-Google-Smtp-Source: APiQypJiOj36IRdWCSnE2jqFau4C5qaoDCjBpeowpN/ES2cey671agk18WbFCi9K+Essp2AcXdg+ X-Received: by 2002:aa7:c0d2:: with SMTP id j18mr3166694edp.283.1588259338073; Thu, 30 Apr 2020 08:08:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588259338; cv=none; d=google.com; s=arc-20160816; b=xs9v+4B9CoYkekMT5+Gj0axS8IFDiyxaMBTesBDm+Hrl/XC2o1a3vIwolkL+JHtiTN 0Rpw0eCQwU+39YW+L306/+UIBhx818+v8TpFANSxsnr5viqHlQxMafjkxz17I6NChqcR BYvjiD1eRSrhUD+bHL7muhYe5zcSsuai9AumX7ubfj5DQ4UPQkEQPJWgCzXwQyglT2t8 Z+86pS4TGEMx2TJy+VZCA3ZnCGJWilL0DO9EuFxYum1PNVPB17w0Ea/xHJ0fP79n7ciW wKpyASbgxfS2id5IaHqsBYgBh5pqPssDPbdBmuh+VW5lC2ahNk/zNNHs8HsLqcS87VnB 7haA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=Tru7PrTS/cEk2EWUwEOeWCgUn+R+ZwTSYNBWM33YLjg=; b=CUCRuHhOK7pFWXzR7pY0oymjWjvQGcfvPRr2leUMZzi5E+d5oKYVm/bYZeBifYFU/1 PDZluSs01tvokAs6SNojt/MlyXqYucgz6EcbEh2GOPUBJmcsG2VgjsPiVxXiaMy11g58 +5aj515EHVKxv38zoMufQ7YWTLsxLeybe9NwuKBT3iyOaQgd1IbWynSy3r3ft111Wad3 rRERbPcGrSMVtvyP9137X8s2m0b7mL687J8MJ5C4jcHGfYEpuD+WkNq9ic3rkOybNzpX dh+og+R6MMRu2Sti8ri/llIPZBwi0uGsZ7HcV1Y5ZoblXhEzxNbrf6dNOj4HwJp9Inkb JFxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b="G7S/aEAw"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=T32wf1Yx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k2si5613580edh.267.2020.04.30.08.08.27; Thu, 30 Apr 2020 08:08:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b="G7S/aEAw"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=T32wf1Yx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726889AbgD3PFi (ORCPT + 99 others); Thu, 30 Apr 2020 11:05:38 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:44103 "EHLO wout5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726377AbgD3PFh (ORCPT ); Thu, 30 Apr 2020 11:05:37 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id CF8FC879; Thu, 30 Apr 2020 11:05:36 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 30 Apr 2020 11:05:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=Tru7PrTS/cEk2EWUwEOeWCgUn+R +ZwTSYNBWM33YLjg=; b=G7S/aEAwT1c+33nJT6fsdEVxgPaaVZxI2PD7wiBF+NE sDsj9yoIQe4Bg5Zqu/32cYJ1/o9g75vS4KP+bGdYXRQFCceRiLHsjJMa4H3JXYPx nMJE0/wU8/rnFD2ex84lI/Jtl6fBqL4hJbQej0O22CkiU3ABV3EsPRr4cpkQcG8E txEZ1QVrFc19vK/8zrzQfhNVVWEH5Q+U4e9rDh3OyqHLtARCpuG0mF/8Tg5WY7qx GduxhLWi8KsRQd7aUQtzNARLVbrCuXuytOEB+IBUSgkG4lTQ6MYJa0NcXHKTe/P2 AK0eR2BYJmgAuE6UFhXiNysabyDUbC7bfRNg8fo4qTQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=Tru7Pr TS/cEk2EWUwEOeWCgUn+R+ZwTSYNBWM33YLjg=; b=T32wf1Yx7SUErYgLK+Q0AI To4RLQELHNIbU91kwfidK/p1D217384Ddxg2L+2cYf9Gc8QwhU6TmNz5OrZ8Yjqu e42G5DkiwxciQCVTVmhv3Lc3eBI7NKdySbDhXrDp+nZzL3D6OL3M+tSpyO+v5eK8 wJtlsIxyW19v5BZNjSRUEft6hB90QfUyguiyAbZ9Drz21W28SinmWlci88C4F4X/ DoVZuxXaAZOSuERifUont6kLyf4DaADe74yPAnhMMkzve6ZK4IYEYem3sR+j5pxA ySI1+1RynC6JkP36hkIwD34+xpgxyQfPjTm4JZzMzXvDKg1G1RXwZ23c3RyP3tUg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrieehgdekgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofgrgihimhgv ucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrghtth gvrhhnpeelkeeghefhuddtleejgfeljeffheffgfeijefhgfeufefhtdevteegheeiheeg udenucfkphepledtrdekledrieekrdejieenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehmrgigihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA id A4BA43280060; Thu, 30 Apr 2020 11:05:35 -0400 (EDT) Date: Thu, 30 Apr 2020 17:05:34 +0200 From: Maxime Ripard To: Priit Laes Cc: Chen-Yu Tsai , Rob Herring , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-sunxi@googlegroups.com Subject: Re: [PATCH 1/4] clk: sunxi-ng: a10/a20: rewrite init code to a platform driver Message-ID: <20200430150534.kbzfb7utpc7kswlv@gilmour.lan> References: <20200417221730.555954-1-plaes@plaes.org> <20200417221730.555954-2-plaes@plaes.org> <20200420124935.asfbgv7envb2af55@gilmour.lan> <20200420203228.GA4734@plaes.org> <20200429143510.ksi27lok2udtmfas@gilmour.lan> <20200430062137.GA32281@plaes.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="xtai2ger2274pycp" Content-Disposition: inline In-Reply-To: <20200430062137.GA32281@plaes.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --xtai2ger2274pycp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 30, 2020 at 06:21:37AM +0000, Priit Laes wrote: > On Wed, Apr 29, 2020 at 04:35:10PM +0200, Maxime Ripard wrote: > > On Mon, Apr 20, 2020 at 08:32:28PM +0000, Priit Laes wrote: > > > On Mon, Apr 20, 2020 at 02:49:35PM +0200, Maxime Ripard wrote: > > > > On Sat, Apr 18, 2020 at 01:17:27AM +0300, Priit Laes wrote: > > > > > In order to register regmap for sun7i CCU, there needs to be > > > > > a device structure already bound to the CCU device node. > > > > >=20 > > > > > Convert the sun4i/sun7i CCU setup to platform driver to use > > > > > it later as platform device. > > > > >=20 > > > > > Signed-off-by: Priit Laes > > > >=20 > > > > You can't relly do that though. We have timers that need those cloc= ks before the > > > > device model is initialized. > > >=20 > > > Ok, I'm somewhat lost now... are these the affected timers on sun7i f= ollowing: > > > - allwinner,sun4i-a10-timer (timer@1c20c00) > > > - allwinner,sun7i-a20-hstimer (hstimer@1c60000) > >=20 > > Yep > >=20 > > > Any ideas on what approach I could actually use? > >=20 > > I guess you could keep the CLK_OF_DECLARE registration, and then have a > > platform_driver probe and register the regmap? > >=20 >=20 > Thanks this did the trick. >=20 > > > Also, similar timer dependency would affect then sun6i-a31 and sun9i-= a80 > > > platforms too... >=20 > I didn't check this before, but sun9i-a80 CCU is initialized currently via > platform device. Should it be converted first to clock driver (CLK_OF_DEC= LARE)? I guess we could just remove the timer node on the A80. It has never been t= ested and never worked if the clock driver is probed through a platform device. Maxime --xtai2ger2274pycp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXqrpPgAKCRDj7w1vZxhR xZyFAQCqSDmhn4yTFm8ud90F6phEUSQWgV3icAt09/kyc3T/TQEAmigbqqP2h2Ds T2DQvJTkIn+f7Aa8y8JYzfr9iLPhsAA= =Rpgl -----END PGP SIGNATURE----- --xtai2ger2274pycp--