Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp931252lqt; Fri, 19 Apr 2024 15:24:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWNvEZzz9BzpWt3QvUM9H6ZASwJBTPn4G5EQuUHr26I+is3X6kCGkZfjzLfMypzxV3mUinIhKufUhIfk1n7KczoASoc4R73VWHPyD5zsw== X-Google-Smtp-Source: AGHT+IEiaTIx7TraNpXnXzEwTDd761hQLcaChtINdefEUPx0U4yd0POZ+QB3T27ZUhC9CHV0dxDH X-Received: by 2002:a17:902:8302:b0:1e8:b715:45bc with SMTP id bd2-20020a170902830200b001e8b71545bcmr3264479plb.29.1713565495354; Fri, 19 Apr 2024 15:24:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713565495; cv=pass; d=google.com; s=arc-20160816; b=Kpcmy2hzv8vVpF4gIZKaCB8jakuclOQtmzM9r6NM/+Im360vw62hPG05vPetSlLF8x 92d5pwv86vnCERx3M9rKBnyKXA4WtvaYnH/5aCi7bfAnLEhr6k2Gt192IOXNy0cObw78 suddL+f0lOiMePm3+Ogx4d9qO/oi4etFmbw9EkJ6TVT95fMtp+C9ZpF3EDy+wdm1MpIy E7bwfCn73NgLZDU+mJLUMpmmJ7R7xJyAUhbC7V/olVnZJ1Y5CmFtHp/LKlDy1rRsQ/j7 lXVOUAHP6NdJG7HfZb2rkyJvrazhR5pyRmpfpt2xFUW3+esM0ZXbvf25nyWC/Tn7HP/D c6cQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:date:to:cc:from:subject:references:in-reply-to :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:dkim-signature; bh=0pD1drXQj39EFN70jQBI3yqld3d3RmDOuileOMRvtOA=; fh=jhRrYQLgWLM4B5QwB9JZbmPhY4pZ0AXyVmVwIln+95w=; b=AJd5+h5+CU0lOn+ndvMYiHcGbAaYG9Sx64OR7Ee5kJ+ZShvWPb4z36fxif8qSRrRMH cAdn6w3NiYkpG/fUiAnv2xWEeHeq4uLRFswL2mRsI3yC28Zb7eYKYVoxEA3eOd9bwHIg 3nacWbwrQ96pw1kCsNnHZywXddpBHzVSluzQH3qhvzL9oioJW5ZSggchg7VZffZyZI+z 94ceNCUcYXrFFZmakmYjZkpT32S59Wcp5ohJDkTqvaraBH+Ksocv+OhdoaarlJpb3bg+ iL1GpE2h213dpAX+NwnpixlE/krKsOKjQPXh7N2TPuXLr1fLnWW7Ytk4sqtMq3BTWVQJ GAjQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rJ+nSZZo; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-152003-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152003-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id p6-20020a170902ebc600b001ddcc1543d4si3889554plg.64.2024.04.19.15.24.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 15:24:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-152003-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rJ+nSZZo; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-152003-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152003-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 04B47282000 for ; Fri, 19 Apr 2024 22:24:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4D72B13D501; Fri, 19 Apr 2024 22:24:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rJ+nSZZo" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6378313D2A1; Fri, 19 Apr 2024 22:24:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713565485; cv=none; b=ucXaqSyNP+dyyq9EfNnB7goKP4jLvc2I28c5F6oZN3ANmYOgkvWFgm8r+u9Tp3VAQ6LpdzvDZSwUULPY78pzoR0RVOfd+AvJFEatmOCMdEHTi/UebD2cQde++O37LSL29rGkIaOpLne/SSqPUfoHZWTYu+rRJvswDKUeeMW3698= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713565485; c=relaxed/simple; bh=0pD1drXQj39EFN70jQBI3yqld3d3RmDOuileOMRvtOA=; h=Message-ID:Content-Type:MIME-Version:In-Reply-To:References: Subject:From:Cc:To:Date; b=n9rjERSm4DljifxfOpjS61yxfcWaUe1T1ck6yM8TfevGihERsJ4G7AZVjE41JQqWcrpnGHJFmVZQ7cKXalgQd4cUmHNahEob8T73lnSStX0Oz+3sOwAA8/G1gFfwjUHr0P4BfgqTr57ZmrxBArWGMz/hhugw7Uf0wMv0KQdNZxY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rJ+nSZZo; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B25F0C116B1; Fri, 19 Apr 2024 22:24:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713565484; bh=0pD1drXQj39EFN70jQBI3yqld3d3RmDOuileOMRvtOA=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=rJ+nSZZoJx3f6EJuiigZuYRjPe0R+Glwm9i+QGpOqc7TGdsye5yFeaoD736tqv9He MCSyZ4VcJFcULkULRxpuZLMiivKub3KLxbSTZNIJrcHc1BYs/oWBqcIhQi7YhpCKrd bn8BQNsVc6iHexGOxLVjtppPRXvK1+F5a506CSPqpRJ5BtS86jg5DeArHC7L7b5XyP 5gJTx93tQjPKjLCNLCHee/v4Y/bD9nRTpM+BpPOilpkJliu5tpDgsCZmWtywNNOyOU X1QN7XerODRFMluOIZto5hzj6Woeqhpcq/LNa2an4nDdBL95/yr8Qpxe8g9z55eZWS UJNmsj9flPzjA== Message-ID: Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <3287993.aeNJFYEL58@radijator> References: <20240402-pxa1908-lkml-v9-0-25a003e83c6f@skole.hr> <58b23157c088cb4774d579cc8700de85.sboyd@kernel.org> <3287993.aeNJFYEL58@radijator> Subject: Re: [PATCH v9 5/9] clk: mmp: Add Marvell PXA1908 clock driver From: Stephen Boyd Cc: phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Karel Balej , David Wronek , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org To: Catalin Marinas , Conor Dooley , Duje =?utf-8?q?Mihanovi=C4=87?= , Guilherme G. Piccoli , Haojian Zhuang , Kees Cook , Krzysztof Kozlowski , Linus Walleij , Lubomir Rintel , Michael Turquette , Rob Herring , Rob Herring , Tony Lindgren , Tony Luck , Will Deacon Date: Fri, 19 Apr 2024 15:24:42 -0700 User-Agent: alot/0.10 Quoting Duje Mihanovi=C4=87 (2024-04-19 07:31:14) > On Friday, April 12, 2024 4:57:09=E2=80=AFAM GMT+2 Stephen Boyd wrote: > > Quoting Duje Mihanovi=C4=87 (2024-04-11 03:15:34) > >=20 > > > On 4/11/2024 10:00 AM, Stephen Boyd wrote: > > > > Is there a reason this file can't be a platform driver? > > >=20 > > > Not that I know of, I did it like this only because the other in-tree > > > MMP clk drivers do so. I guess the initialization should look like any > > > of the qcom GCC drivers then? > >=20 > > Yes. >=20 > With the entire clock driver code in one file this is quite messy as I al= so=20 > needed to add module_init and module_exit functions to (un)register each = > platform driver, presumably because the module_platform_driver macro does= n't=20 > work with multiple platform drivers in one module. If I split up the driv= er=20 > code for each clock controller block into its own file (such as clk-of- > pxa1908-apbc.c) as I believe is the best option, should the commits be sp= lit=20 > up accordingly as well? Sure. Why is 'of' in the name? Maybe that is unnecessary? >=20 > > > While at it, do you think the other MMP clk drivers could use a=20 > conversion? > >=20 > > I'm a little wary if the conversion cannot be tested though. >=20 > I'd rather leave it to someone with the hardware then, especially since t= he=20 > only reason I found out about the above is that the board I'm working on = > failed to boot completely without the module_init function. >=20 Ok, sounds fine.