From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) (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 D03A0189915 for ; Wed, 4 Dec 2024 10:34:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.118.77.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733308495; cv=none; b=huWBo8LeR+X/3FzR8w8VKnzj4qrH2EowHjG4FmyXRtQDvvaR3tKo9/UYrbJQOYUFyXVct67Sg7vRkmTNHj8FGv+2yu4hoera7nfIBuoaupigjYXSHnUJjLKKsrQ/fNcWeAbA69WfTkN0JL/pe+B118Ri0KM50iEoCErzW7mrgdI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733308495; c=relaxed/simple; bh=ThPPkK3Bt2gs0BoLGsQNUcJDtqUraUqu6Ng+2ewBOuo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:From:In-Reply-To: Content-Type:References; b=KLlCgtrJnVa/N0om//8EYyAA0HI5/JqQrRMaHpQUXFHUlwiFApmSZ62butVtmmT7XWWi1bUOKF2r595MSTP/teAoSROldyVsuE+uQ9YAQBRCpRynTxQuu4n88bYAPJC/znvCoPDgLKIwcgURkRwqCNx/ujv1t2olqYo/0B6/g9U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=niQgSedU; arc=none smtp.client-ip=210.118.77.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="niQgSedU" Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20241204103451euoutp0106dd41d04edac85072ed011c3dbf2201~N8uOffwz_0268302683euoutp01k for ; Wed, 4 Dec 2024 10:34:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20241204103451euoutp0106dd41d04edac85072ed011c3dbf2201~N8uOffwz_0268302683euoutp01k DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1733308491; bh=+l4e4Tyx2I1+OfNbhG6k6rLroWYsZg5fA2FLlIaEGO8=; h=Date:Subject:To:Cc:From:In-Reply-To:References:From; b=niQgSedUrpFLE7LRUETDJiXrPBx5Jjiz5Q9jVIw3QZ5AwXbr3ZUog4id/+OC9tbwR uQwpLQRVGX/SHJKoatTqiJCnSBDFsWzAjUuKLBHo7GHN79gp9Mmu2hlXuqqY2fpsvm 39T7fBgG5HSeP2pQ43MRkUyoPAFj8rUekSLTzDM4= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20241204103448eucas1p2787f6ba041d5859d798f8a0fe36e5869~N8uL0vWCQ1075110751eucas1p2M; Wed, 4 Dec 2024 10:34:48 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id A0.27.20821.84030576; Wed, 4 Dec 2024 10:34:48 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20241204103447eucas1p1290a8da81821da986015bef31ccf0e3c~N8uLKQQUG1362813628eucas1p1r; Wed, 4 Dec 2024 10:34:47 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20241204103447eusmtrp2cae4b6f1f36a5e73397910cd66cdf731~N8uLJMXGw1364613646eusmtrp2t; Wed, 4 Dec 2024 10:34:47 +0000 (GMT) X-AuditID: cbfec7f2-b09c370000005155-fe-675030486f50 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 0E.BB.19654.74030576; Wed, 4 Dec 2024 10:34:47 +0000 (GMT) Received: from [192.168.1.44] (unknown [106.210.136.40]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20241204103446eusmtip11cf57501b24c5ce7d747834870a33315~N8uJ2BqPW0744207442eusmtip1a; Wed, 4 Dec 2024 10:34:46 +0000 (GMT) Message-ID: <17df9341-e299-40bb-81ae-f4c7296d73ac@samsung.com> Date: Wed, 4 Dec 2024 11:34:45 +0100 Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH v1 13/14] riscv: dts: Introduce power domain node with simple-bus compatible To: Krzysztof Kozlowski , mturquette@baylibre.com, sboyd@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, drew@pdp7.com, guoren@kernel.org, wefu@redhat.com, jassisinghbrar@gmail.com, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, frank.binns@imgtec.com, matt.coster@imgtec.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, simona@ffwll.ch, ulf.hansson@linaro.org, jszhang@kernel.org, m.szyprowski@samsung.com Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-pm@vger.kernel.org Content-Language: en-US From: Michal Wilczynski In-Reply-To: <9b75bc06-2a28-4c16-8e2b-90f824f7f79f@kernel.org> Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: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IOSBfiTUmsrEotyo8vKs1JLT7EaAoMjInMUqLJ+cC0mVcSb2hmYGpoYmZpYGppZqwkzst2 5XyakEB6YklqdmpqQWoRTB8TB6dUA9Omyf9PFs306Fn62kAy+BOLoUpJnqbZmRzrxB/yn4N8 InJWFNytqhBdli2bsEI+PPpmWviHH7czDjTcjQptmulfNE/9ldGMn4bnxZN9j0uvO863SnXP 7Wlb57wsfZOV171aaanMJK3vi6SKGaKr0zpW9/Fsy/8iUJ1xdq1MkKeGwbsIhyqn7yWr115y me8hKHj+1oaEdy6N8oqCC+a2iTZZCv49FdW0jT1u2cngmx93TT7ftudNJtvXrduFzgtJ5scs Nkh6bnxg8sVfOppXtus6XUnPX5gvlfrfSC/pqE/9opctF5sfB/zpvTtp3/cbdqWPHPS+unAw HMz/cSHX1+yIwo0LvySNtFadVkwUb1FiKc5INNRiLipOBAAdHNKv4wMAAA== X-CMS-MailID: 20241204103447eucas1p1290a8da81821da986015bef31ccf0e3c X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20241203134206eucas1p10ca2d7bb12afbd082d5f8a9ad85f94bd X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20241203134206eucas1p10ca2d7bb12afbd082d5f8a9ad85f94bd References: <20241203134137.2114847-1-m.wilczynski@samsung.com> <20241203134137.2114847-14-m.wilczynski@samsung.com> <9b75bc06-2a28-4c16-8e2b-90f824f7f79f@kernel.org> On 12/3/24 16:52, Krzysztof Kozlowski wrote: > On 03/12/2024 14:41, Michal Wilczynski wrote: >> The DRM Imagination GPU requires a power-domain driver, but the driver >> for "thead,th1520-aon" is not yet available. To ensure that the 'aon' >> node and its child 'pd' node are properly recognized and probed by the >> kernel, add "simple-bus" to the compatible property of the 'aon' node. >> >> This change allows the kernel to treat the 'aon' node as a simple bus, >> enabling the child nodes to be probed and initialized independently. It >> ensures that the power domain can be managed appropriately until the >> specific AON driver is developed. >> >> This commit introduces some errors while running dtbs_check, as the aon >> doesn't have the dt-bindings yet. >> >> Signed-off-by: Michal Wilczynski >> --- >> arch/riscv/boot/dts/thead/th1520.dtsi | 11 +++++++++++ >> 1 file changed, 11 insertions(+) >> >> diff --git a/arch/riscv/boot/dts/thead/th1520.dtsi b/arch/riscv/boot/dts/thead/th1520.dtsi >> index 39d39059160d..58f93ad3eb6e 100644 >> --- a/arch/riscv/boot/dts/thead/th1520.dtsi >> +++ b/arch/riscv/boot/dts/thead/th1520.dtsi >> @@ -6,6 +6,7 @@ >> >> #include >> #include >> +#include >> >> / { >> compatible = "thead,th1520"; >> @@ -229,6 +230,16 @@ stmmac_axi_config: stmmac-axi-config { >> snps,blen = <0 0 64 32 0 0 0>; >> }; >> >> + aon { >> + compatible = "thead,th1520-aon", "simple-bus"; > > 1. No, that's not a bus. I understand that using "simple-bus" for the 'aon' node was not appropriate. Since the 'aon' node isn't needed for testing this patchset, I will remove it and move the power-domain device tree node to the SoC. Future changes to the 'aon' node will be handled in a separate patchset. > 2. Please run scripts/checkpatch.pl and fix reported warnings. Then > please run `scripts/checkpatch.pl --strict` and (probably) fix more > warnings. Some warnings can be ignored, especially from --strict run, > but the code here looks like it needs a fix. Feel free to get in touch > if the warning is not clear. > > Sorry, this patchset is not ready, unless by RFC you meant - do not > review, because it is not ready. Then it is fine. But then *clearly > express* this in cover letter, so we know what you expect from us (and I > would not waste my time to go through all this). My intention with this patchset was to gather feedback on the overall direction of the changes. I understand that clearer communication in the cover letter would have been beneficial. Moving forward, I will ensure that the patch's readiness and expectations are explicitly stated. Thanks a lot for your review. MichaƂ > > Best regards, > Krzysztof >