Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp694697lqt; Fri, 19 Apr 2024 07:51:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWMm8n4Befu9T3I2sSSCs+KJY80KXeqPrBXhBqbO5QtwFao6apB3NN5WQCUcXnzIRCkIr+boWWpdfpZpKYgezImuVJo1hZ7cE5tZySrEg== X-Google-Smtp-Source: AGHT+IFKP0MV+55o9iYoUEcq06xeTU5miGSBGYTJfU/mwShJ47pyEsYwz75u0rDmipkDYZdePnlE X-Received: by 2002:a05:6870:d111:b0:233:1d97:40a0 with SMTP id e17-20020a056870d11100b002331d9740a0mr2829338oac.24.1713538279452; Fri, 19 Apr 2024 07:51:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713538279; cv=pass; d=google.com; s=arc-20160816; b=SdYi4E+9Uycp4ilwOx7AqCEoF5YI5SZb4TVzxf8oIYSRF5kE0kIXX67Xomsl3q+FwF jj7Qyptd/ICmx2n+ZzW2yZqnPcsEbU5h6tZn21y7tnt4J8fFtnzB3npZNFOeT+eZn65v bnWT/oeK5hnM+hqz60XboO3pWFO6OGN1lEei84bBNlpUsyh3EbD5ZriGLHNa7qMwFsKf vKSheGsen9RpezsRy9YOwoAKNAzTHPzUvJaU0B2338VzYuf9IwRjBRnTaQdq7FCdJtqO hPSUfFBrs0ufZiVSqben/byI95dbqUGJNd6QazmbWMLqZyfiRVS0kqZLqDszlFAC98mC 2Xow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:autocrypt:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=XdSze8OFeJ1AD3Cj0JRpT8h0SZDvisv0/jzNt7qjqFc=; fh=onXvydj27ocDbDRZsbffn5DE7LDZ7M5+Wd/aULl1QOI=; b=MvOn9VZrJ0tyVx3htiMJS9jxJGPYJ03Nuj6SvOGuUhmp1nIYzKdOy/zXvxNXGsVX9U UDxD5e0CEuezdTQbXt9iXF9g/6lh4n84SNKX+r7/EGhHIDqNnHMKAUW9OTP23wYmfkuz I0QRWaTi9PqmyAyftW5CJAtZavJVYGk6MndckIrT39MIeyRrqMYFhhmFU3tUC0NeXBOU o677kDiuLXuPkN6+xS5Noc0qCQyCwIHavEMaquyLu8TAkx5Qke/5jNUnNoAgL3rr7EKz zUsjgmRlE+8UVTSTGf6ElGsKXje6eNLJiTZNqqoO41NWokuIEdIC6HgvRGhVoZDltfJl 2OXA==; 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-151594-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151594-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id z128-20020a636586000000b005cd88585706si3254854pgb.828.2024.04.19.07.51.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 07:51:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151594-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=skole.hr); spf=pass (google.com: domain of linux-kernel+bounces-151594-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151594-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 100CCB23E0F for ; Fri, 19 Apr 2024 14:40:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2EB3812EBF1; Fri, 19 Apr 2024 14:40:10 +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 446E42AE90; Fri, 19 Apr 2024 14:40:05 +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=1713537609; cv=none; b=YuK5aPDX8nKDFjPLceNLBRodx1xqpG5tZcjJpqDuwl7OrkY3EB8Zy/PhMFlCY5Rii1+Y0SnZtwubxu7Z9PDz+QWvvAan8yA0pNeAud2Sqe+InOGCh2jarZ39vueiydsFWaHMXWMcvSG92WHHMfkEd3cdf+TUEeoNDqtK6WNngFY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713537609; c=relaxed/simple; bh=XdSze8OFeJ1AD3Cj0JRpT8h0SZDvisv0/jzNt7qjqFc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=o5LwJMUkOQ65bfc50vkAN+U19E7xuI17zVCu2CTggQMQuVkCYD6lLoUc7ED/ThFc/aP94l3vijTLArWi+upTQzr3OU6AK0Y92AFjFYgwoWV0zWF0bk39gRcVrIJ2K0K/ETD9K728eIUz10XXkVoXSloTVv/ShA/LGf1lUu9idLc= 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 98B508512A; Fri, 19 Apr 2024 16:31:18 +0200 (CEST) From: Duje =?utf-8?B?TWloYW5vdmnEhw==?= To: 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 , 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 Subject: Re: [PATCH v9 5/9] clk: mmp: Add Marvell PXA1908 clock driver Date: Fri, 19 Apr 2024 16:31:14 +0200 Message-ID: <3287993.aeNJFYEL58@radijator> In-Reply-To: <58b23157c088cb4774d579cc8700de85.sboyd@kernel.org> References: <20240402-pxa1908-lkml-v9-0-25a003e83c6f@skole.hr> <58b23157c088cb4774d579cc8700de85.sboyd@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Autocrypt: addr=duje.mihanovic@skole.hr; keydata= mQINBGBhuA8BEACtpIbYNfUtQkpVqgHMPlcQR/vZhB7VUh5S32uSyerG28gUxFs2be//GOhSHv+ DilYp3N3pnTdu1NPGD/D1bzxpSuCz6lylansMzpP21Idn3ydqFydDTduQlvY6nqR2p5hndQg6II pmVvNZXLyP2B3EE1ypdLIm6dJJIZzLm6uJywAePCyncRDJY0J7mn7q8Nwzd6LG74D8+6+fKptFS QYI8Ira7rLtGZHsbfO9MLQI/dSL6xe8ZTnEMjQMAmFvsd2M2rAm8YIV57h/B8oP5V0U4/CkH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AtngTFZrzAnGz6ni lRl32b7p8N+KaO4u2UGmGOwd/CuCzr2DxGomUSyCwOta7vOxator+NPK48roa417gBZ6ZFRplma ExicLFSnwBdGC3NnDa+yoRHKXHVSDfkb/FEhWuN/1tTZ96uxVYtHcln+snB2N6/hwmrOon2cHNu UeTLcrVyqI0Qz8JT4ksGxkxziO2L/e0O/xUp9mLAswixWt8+BMz/3sIJbdAPBVyt5QbHzWR6aID B5cQ1aQwZB8n7yt8B0sd/uIQItYu2urJ9gVAJkaEDms8+vbtOM4totXk5swwGxRg== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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. With the entire clock driver code in one file this is quite messy as I also= =20 needed to add module_init and module_exit functions to (un)register each=20 platform driver, presumably because the module_platform_driver macro doesn'= t=20 work with multiple platform drivers in one module. If I split up the driver= =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 spli= t=20 up accordingly as well? > > 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. I'd rather leave it to someone with the hardware then, especially since the= =20 only reason I found out about the above is that the board I'm working on=20 failed to boot completely without the module_init function. Regards, =2D-=20 Duje