Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1094018lqe; Sun, 7 Apr 2024 19:39:41 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXTuoGp1K1e2+O5/Q5lY0sw0RS34EiAPP9jp1GloEssGnjzD1QkbJ2p/nnB+KmS8BhtJt6iBxxU0mNPOew5z6r6ht6UGkHILR9OtMkeVw== X-Google-Smtp-Source: AGHT+IH6SDaMFGFy95RVMiGuCANwzsf2KrWPtrJBMboxZCpse+uKO9TLBtGO+kL22P/fQ4JR1K0L X-Received: by 2002:a17:907:8694:b0:a51:b1a2:80bb with SMTP id qa20-20020a170907869400b00a51b1a280bbmr4164180ejc.28.1712543981085; Sun, 07 Apr 2024 19:39:41 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id gn39-20020a1709070d2700b00a51c9872c6asi1334773ejc.63.2024.04.07.19.39.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Apr 2024 19:39:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-134728-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b=sqUV259x; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-134728-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134728-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 CEC401F2177F for ; Mon, 8 Apr 2024 02:39:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9C93D1860; Mon, 8 Apr 2024 02:39:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sqUV259x" 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 B9FD237B; Mon, 8 Apr 2024 02:39:32 +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=1712543972; cv=none; b=Hfp5kVHUfPzBHXuOQ2p+JVYx+HXdjUaQLEU7G6XozrByWqlJsv5z4mRdVf0SN5B081iW7+4MHuAHse+3kp0rCrYWucUrjLkFSF7Q5louvsAZrfpfGfedH7aadaA8rqLKOp9nm88EL+NijoxdgvcVkByHWlzqaICMZgIojGLMN/4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712543972; c=relaxed/simple; bh=WiV1uZ4O5oZWV8uovYZMAUBP4HUdX6mv+zU4qJDlZYg=; h=Message-ID:Content-Type:MIME-Version:In-Reply-To:References: Subject:From:Cc:To:Date; b=NcmXUttJFANaatw7Gj5dgoO2ewPkozRdU510edY1WDAMi2q4e0BVlgyE+YUXentbkzkhTwqwui4i/kr7XD/clOFOf+kI45q+6N7j4unGilD6XB5meR9h9ujSEA1WXiJ+wGMtmzPCMbivyZGp0ag+LYiPmUTQ8I5aMMDnXwflZic= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sqUV259x; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7A329C433C7; Mon, 8 Apr 2024 02:39:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712543972; bh=WiV1uZ4O5oZWV8uovYZMAUBP4HUdX6mv+zU4qJDlZYg=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=sqUV259xrrRSDDv2FEoC8m5pPA8WfITE82/FYzxSYFNJ22TTpgk+XFvCk2G9GWiGJ mh3XIJN0rXm+ipKR9nKjUIKStbuIqnONgdlV13Ezyv+vFY0983Tj6b27Eka0BICoy3 ojwB1b+5EJwWbx7uWMcGCcYgaLy/QEK2m3R97xzxhyV8FdKRnTfXPWdxtKSa6eDOEM y+oHMDOHE5nJv/Wv3y/4hCx+kuGPZ6MlocIlTUN1L+d491n3e+Cg7gemxhBa5wogjy 5SXG649had+fGF/8tSK06CaasyXBD/gBaKEfsrXd0G10/KDxs/vHJ9yyuYk8sgwP1e vqg0Y/AuLp3aw== 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: <1j7chfiz8e.fsf@starbuckisacylon.baylibre.com> References: <20240328010831.884487-1-jan.dakinevich@salutedevices.com> <20240328010831.884487-2-jan.dakinevich@salutedevices.com> <1j7chfiz8e.fsf@starbuckisacylon.baylibre.com> Subject: Re: [RFC PATCH v2 1/5] clk: meson: axg: move reset controller's code to separate module From: Stephen Boyd Cc: Neil Armstrong , Jerome Brunet , Michael Turquette , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kevin Hilman , Martin Blumenstingl , linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org To: Jan Dakinevich , Jerome Brunet , Philipp Zabel Date: Sun, 07 Apr 2024 19:39:30 -0700 User-Agent: alot/0.10 Quoting Jerome Brunet (2024-04-02 07:52:38) >=20 > On Thu 28 Mar 2024 at 04:08, Jan Dakinevich wrote: >=20 > > This code will by reused by A1 SoC. >=20 > Could expand a bit please ? >=20 > > > > Signed-off-by: Jan Dakinevich >=20 > In general, I like the idea. >=20 > We do have a couple a reset registers lost in middle of clocks and this > change makes it possible to re-use the code instead duplicating it. >=20 > The exported function would be used by audio clock controllers, but the > module created would be purely about reset. >=20 > One may wonder how it ended up in the clock tree, especially since the > kernel as a reset tree too. >=20 > I'm not sure if this should move to the reset framework or if it would > be an unnecessary churn. Stephen, Philipp, do you have an opinion on > this ? >=20 I'd prefer it be made into an auxiliary device and the driver put in drivers/reset/ so we can keep reset code in the reset directory. The auxiliary device creation function can also be in the drivers/reset/ directory so that the clk driver calls some function to create and register the device.