Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2634275lqt; Mon, 22 Apr 2024 17:38:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV+82OI02ZflJX48xIEfRQOCTHFrHPoXAYiKdGkLvOkWpfL1clTq+xDMvanNI5OHEHiZRccbivBTNzf9MdZZNOQNjRVnWxAcbO/noSlWQ== X-Google-Smtp-Source: AGHT+IGmv0tax/+351wC2qYd+XidUfkuzKAjHyXziYWRRO6Dn0sX4yrwx4c5GWdW906R6Rja5QYN X-Received: by 2002:a05:6512:108b:b0:515:c91a:f4e2 with SMTP id j11-20020a056512108b00b00515c91af4e2mr10047113lfg.24.1713832733829; Mon, 22 Apr 2024 17:38:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713832733; cv=pass; d=google.com; s=arc-20160816; b=xwxYbL/YgIcwLSJg6CEuifVN2k3BlCYHkqcEiun8qtAGJTnqTs3RHqzi/kCZvt8EP9 z1/q0+g9+dc3Sbs6Igv9mV+TogVUGhrvvFlIKydUxClPoDINCjh65JxU7b/t7WQPE/66 gpW5ewZbay+9cp83O4sqPootGx+yqmHoOXSGnnSEoPDVihKGgr7VVDKz3oOKo7Pmi1Z2 OWAn7r/T9De+Z+V9WdG+pT32By3pOC5KoWmBZYF9KKZigZQEJ0eTgH8bQZTneyu/gAR8 88Iuq2Wrk+yAzZUVui5Sz/JdjFvvua6dJwbHG4F48yLTcdAh51FyIri1v4TnzoolFg8k 0edA== 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=Mu7unsryILuvM3Nf4rtyuH+NnGl/Ag6KmANbCK5/2A4=; fh=jhRrYQLgWLM4B5QwB9JZbmPhY4pZ0AXyVmVwIln+95w=; b=LdDww5jypwNP9UVN5kW0oMP2ItdI2IVp4YEzg7cmL0aE5zH6s0P1ffFkUGVl1EwvJp l6BS5T32K4nG5d2JqLxwbxmSuzHNf6bNehtVh8KkWKS6yVSjfw38xcMcOgKBw8flg7Zc uovEyGBUav8TiN4qoN6ZsxLtKIWGgmzLYR0QuGb/7euDb9IwIokhCfFCYwJbR7OtI2V3 omPXvETkpLNPm1bq2CRm/vPlv3H+BoaYT8nNrQjSZ4bBtxvR2XvZb2GJJUqjNY1xj1cd DRaaX+AoB5pFTIy+hkEKhRsPfr1zuNvIxM+Zav2HJ173VEUGXgNLnkqlNNFaFQzQMB7w CApA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JTll7Hu7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-154356-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154356-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id i5-20020a05640242c500b00571d5c4a25csi5036200edc.91.2024.04.22.17.38.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 17:38:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-154356-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JTll7Hu7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-154356-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154356-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 63B6B1F22540 for ; Tue, 23 Apr 2024 00:38:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 92C72E576; Tue, 23 Apr 2024 00:38:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JTll7Hu7" 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 A78AB184; Tue, 23 Apr 2024 00:38:40 +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=1713832720; cv=none; b=j4b8hipABbIK61kxk9DuthcyujGIdGAb5Zj7Mgjhyo7eMFsgeJD6CEMtnTUHKnVonA58+2U7kHwL8vQD9zR8BQFJcx398/xov/gfvE8JiNzVQwIX172YkwdbNT+6OpCptkzD0l6ix04O4PTYlan4I4BBXI0rStn/6+Z+Eitkyls= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713832720; c=relaxed/simple; bh=Mu7unsryILuvM3Nf4rtyuH+NnGl/Ag6KmANbCK5/2A4=; h=Message-ID:Content-Type:MIME-Version:In-Reply-To:References: Subject:From:Cc:To:Date; b=NimtZvSp4BY0FkYUHFLmKYB0TNNz3VTqyhyXUOy9rbNA13fHQpWy+m4LxeHEYpw6mVu4knaeUqrr/nl9RSQhE2I6mf4YXMC8y1fY26hgucNcXqURRzR8X/G8yklnBohLR9xA+ceq91BMDqxIjwimIvD3RWbiFJl8vbLHTuD3bEo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JTll7Hu7; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26AC3C113CC; Tue, 23 Apr 2024 00:38:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713832720; bh=Mu7unsryILuvM3Nf4rtyuH+NnGl/Ag6KmANbCK5/2A4=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=JTll7Hu7wF1BKHSgU8lKwIEL8hfr25t3ek+6NP5oW5+ShsrBaqQxD7sfBZFQdPk+x L+2+LOIS3x3RAUoeIcsVM5+JZmlF5DkB8ezeM2plNruKpD3fqnng/RomOYEvnH7LBD 0KmaMANR6rnRRIaD0S1XEYQOMGImnsWtw2hvxUa2ZiDcFdS2a7/IE3RN8rURKVcUpq OwSlcgK+tPnnj/3PiZH1FpL8GZy4kiZKEdT+KXRh1QeTkyzpfb0+oS7TKyGBHX6Eri PQY26zMwJRRA9RUcx12XelpDstx/304B41rFNc1pBSigH/+mYctSdN1ASRmUw8oMYk yfacwyHNuCAQQ== Message-ID: <2473d3ddeea21640b20735d660e48f98.sboyd@kernel.org> 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: 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: Mon, 22 Apr 2024 17:38:38 -0700 User-Agent: alot/0.10 Quoting Duje Mihanovi=C4=87 (2024-04-20 06:32:56) > On 4/20/24 00:24, Stephen Boyd wrote: > > 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) > >>> > >>>> On 4/11/2024 10:00 AM, Stephen Boyd wrote: > >>>>> Is there a reason this file can't be a platform driver? > >>>> > >>>> 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 a= ny > >>>> of the qcom GCC drivers then? > >>> > >>> Yes. > >> > >> With the entire clock driver code in one file this is quite messy as I= also > >> needed to add module_init and module_exit functions to (un)register ea= ch > >> platform driver, presumably because the module_platform_driver macro d= oesn't > >> work with multiple platform drivers in one module. If I split up the d= river > >> 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= split > >> up accordingly as well? > >=20 > > Sure. Why is 'of' in the name? Maybe that is unnecessary? >=20 > That seems to be a historical leftover from when Marvell was just adding = > DT support to the ARM32 MMP SoCs which Rob followed along with in the=20 > PXA1928 clk driver and so have I. Should I drop it then as Marvell has=20 > in the PXA1908 vendor kernel? >=20 Sounds good to me.