Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp1236300lqt; Sat, 20 Apr 2024 06:33:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXU+p6DfR0ws7QF7PgwvzSsB/NrbvcNmoIieehwXvaAiGxWxAWl91ibgvGxglIDqCCH1PC3ls48ln8jyMIeq0wTfi+EV1+ybrXf8Yr5hA== X-Google-Smtp-Source: AGHT+IHRXWZyaf9lIMzL53cB57498NRMN75qq2W8Gj0yRRs0bgN36LwqzSQ1q9bFQaokKNtPj1DO X-Received: by 2002:a05:6214:212d:b0:6a0:51ba:a3fb with SMTP id r13-20020a056214212d00b006a051baa3fbmr14696188qvc.11.1713619991486; Sat, 20 Apr 2024 06:33:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713619991; cv=pass; d=google.com; s=arc-20160816; b=WDNLopPHWBXglxZIuWszYQU7brSNwjEqzUjm9SDP38LeTp+lf6ewZf/AVqI5yPcTAP U5SQ81QAmIPonljS1nMF31IttouggTOh4++TJqZdynCkbXQ0Gh1Jv3PVcvHfOLli1PmI QeNdd/bc4gUBLzpYr2YYAF0/vw2MbQNEqHD4lV3fq0NuEZw56I7nMVsZpUn5KgloMuFW fOHTlpTUuQ6ylC4+SjDsVfaHmSvwMJ488E8/9AeIUd9I8roarcNjewyLI8/TqubXqUJG F+MRhsJUA9AkKT1YZlqdsDjuHpQnGyGNC7/0bYLUOcxeyDzGZkqNqCLPQyXlTkx/9Gys 6swg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=qMzC3MQ2m7jbjygNTS7FJNfHlRuNLwq6DIW3CbUQsZA=; fh=JrhzXgCkv2cJXEQBudkwJQxyBzpLxOD8BhibnKRpUKw=; b=K2DYIyE+bL5BzRG/Pm3RhOmDmmMLjH1GwimflpTf9EGMbWRYhQn+ZAm7vv1FVO6FHC II9fEqVXStoCPWxGPqM/loUk8kbySrwJKwUO1M6XGS4cPglEDlCDXBjga38lwfmv5C0f Cd+RGWUOtUJpN61oWn/zXnFJ3SROm0viZWYmWi3BIJdoUK6XivA+ZDZE+Y2O3dfD/F1u kQA9T6nXE8rcXE7N46TsK69vk4cWLdu7b/i7wp4FQtnUM2QJd1AGyoKRlkBZRqX98v2N /9mn2jAohHdKTbYM95WT6gdR3yvxm2EjjFTfZ0jMXljFuP8qoZjou0sd5CsVmnR0Mbl0 b/xQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=skole.hr); spf=pass (google.com: domain of linux-kernel+bounces-152276-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152276-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id g7-20020ac87f47000000b00432d10da174si6146088qtk.465.2024.04.20.06.33.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Apr 2024 06:33:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-152276-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=skole.hr); spf=pass (google.com: domain of linux-kernel+bounces-152276-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152276-linux.lists.archive=gmail.com@vger.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 394831C20A4C for ; Sat, 20 Apr 2024 13:33:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2FEEB20DC5; Sat, 20 Apr 2024 13:33:06 +0000 (UTC) Received: from mx.skole.hr (mx1.hosting.skole.hr [161.53.165.185]) (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 3FA6F20309; Sat, 20 Apr 2024 13:33:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=161.53.165.185 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713619985; cv=none; b=dO1cd16IyLApROrVU6vOAaWA3FRk1dDMY/fhrnUlferAWtK+YUpb4266BJyV7N0uw/IOr2VTiXjpDMrQKT3ZkAeDAzy1E4DE1gCBUr+p+fCv/uXczxJjNHOLQaLMQhbI72hcU/7R7eo9P275Sdyt9hETPcfz5aSRrObKO+t8rGI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713619985; c=relaxed/simple; bh=PEcDp8I3M8Yr7iDTgjFDbNrl9L5ce/gSH/kcCCvROGw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=EVjoi7r9RMkxDtx+JDPnGNfYMogiu4kqKXFt70Vst6m0knba6VLeSUfZaHOVvpuwMnIjr/pGI36LBn/AEUmxUFO+uMARNICCv1xQtQGMFhGSwAem8W66hGXfaZyk+bk+y7FOLfTCmcGQRrEgGUrvUGG0zmtWSuHPvAp7FJQ2fr4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=skole.hr; spf=pass smtp.mailfrom=skole.hr; arc=none smtp.client-ip=161.53.165.185 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=skole.hr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=skole.hr Received: from mx1.hosting.skole.hr (localhost.localdomain [127.0.0.1]) by mx.skole.hr (mx.skole.hr) with ESMTP id CAECE8333C; Sat, 20 Apr 2024 15:32:59 +0200 (CEST) Message-ID: Date: Sat, 20 Apr 2024 15:32:56 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v9 5/9] clk: mmp: Add Marvell PXA1908 clock driver To: Stephen Boyd , Catalin Marinas , Conor Dooley , "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 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 References: <20240402-pxa1908-lkml-v9-0-25a003e83c6f@skole.hr> <58b23157c088cb4774d579cc8700de85.sboyd@kernel.org> <3287993.aeNJFYEL58@radijator> Content-Language: en-US From: =?UTF-8?Q?Duje_Mihanovi=C4=87?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 4/20/24 00:24, Stephen Boyd wrote: > Quoting Duje Mihanović (2024-04-19 07:31:14) >> On Friday, April 12, 2024 4:57:09 AM GMT+2 Stephen Boyd wrote: >>> Quoting Duje Mihanović (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 any >>>> 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 each >> platform driver, presumably because the module_platform_driver macro doesn't >> work with multiple platform drivers in one module. If I split up the driver >> 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? > > Sure. Why is 'of' in the name? Maybe that is unnecessary? 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 PXA1928 clk driver and so have I. Should I drop it then as Marvell has in the PXA1908 vendor kernel? Regards, -- Duje