Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp6543lqj; Wed, 10 Apr 2024 01:57:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW4EhribQ8KOxwMVPF9datyfqUshqj7Ad5skO5yRVY7admKGcYjO+dev+zxahyW1e/a2agkpAtQ8vuYCoCXpQPdCQ3eKDkJbgDu6SVK2g== X-Google-Smtp-Source: AGHT+IHY1/yycrLlywAqB54d1/AcWUrWbjIwvmjFFrKujyojR/B2wQcdtkG2nU4K5A6KsuTyImbr X-Received: by 2002:a05:6a20:9e4a:b0:1a7:5149:f4b9 with SMTP id mt10-20020a056a209e4a00b001a75149f4b9mr2037490pzb.58.1712739439924; Wed, 10 Apr 2024 01:57:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712739439; cv=pass; d=google.com; s=arc-20160816; b=lQtY90mOHYrauukPmNLKcHFBGxp+nALuxscwJSXgkiWaor6P8blHbZsORCKe2dXSCl z+kGlNHjqRY6VedVxf6USADlTP5YE3KdNKQXZMX5P0FcJptY8bz7K0nLdYmYIo5O3ocd 3CtH0Kfxr2kB45I4LFzAwKK/yt0Mvy9wz6Av9JawTpxgg5jLN5RIwuLFsw9Z4a0WpAtJ rQ/RhERLfAIluJzwdfpObjqdlyYnnKLB+JRNNdQbSfGNfd7o+L+V9HciVErzfxF1FrGd cGqWn3EYBvZa+LanGbH/F01l7y+L0glWstKqw3HgdiiaBW2QbX83OuEoP6HME8j/k6k4 1Qgw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id; bh=AqqhIG7u2KLSgRTQHS3SFhqS93QNJZ7kuYKG6L8I1NE=; fh=0nH95y2Xq40y+tNTgrKIWtQK7uxSnOZn7nIT7hQJHxs=; b=k/NrBID9Uy4EI5EPqAYLu7eaWIuTr9r1hwKfC0aWdTXu2ksLW6PgsTKhAGVPqR2Hqq A6D9VAEKOsTjJDkrn82Q59hIl97MUG8a+PFYsTDETaDIqfLksYx9ArZRETaW4wMUZ9wF LBCrRuV6ErjKuGuxJrCQe3LkOGjjbWlcJLsphpQiwi97uPQy//wB0SE+5SGe1yLR2+iz v4bSI5HY/H4ZXIarTGgI8upCA8zIAxaoryQyVxyEtFxgCfbn3/m7p55Vjs9PVH4PMG3R WJBfWuPYaaDJ3LAZK+vO1jeF1HO9GEwhCWGZ5b29wZPDLyfW7OLfosZ/Pv6ouwL0sWOm Jh7g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-138210-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138210-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id a23-20020a62e217000000b006e7c1a5e188si10199680pfi.248.2024.04.10.01.57.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 01:57:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138210-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-138210-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138210-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 9A0162856CF for ; Wed, 10 Apr 2024 08:57:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9369F1552F6; Wed, 10 Apr 2024 08:57:15 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (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 66A8F1494D6 for ; Wed, 10 Apr 2024 08:57:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712739435; cv=none; b=IcHbBcHEvxQltlQoTMy0akWsI9cZptPvEuInVsg1i2AbVANfNRoWIRpXP93FvceCp2bs/kgKZMcsAtHgNbIp4Gp0AOGbh86asAcZKQbTAkE9fJGsVHUGNLtLiJ8tX8cpNoc6RmARvTnEv7f8cGp1mpHYC2Q016jq+g2mx2wHIlM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712739435; c=relaxed/simple; bh=Q1AqR+G96BIjuAm54HH3yhLhu9vaKzbndYjKoX1vp4U=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=sQPn6atJCMSm9rijY9raMdo+bEqxQTy5PGKKhomLT/m20L0Bd1P3pgpp/JYW7t3bdX9q7F0YVkMlUdMfmRuOsRz5T736Zf/kcbyz46M9nTGI8hx2Lg6XX40HtvGhfzmfAlXdIArFyeTGHT+8ZWW4FgQLTbSCheBp5N/jTjsOxBw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ruTlJ-0005R5-Qm; Wed, 10 Apr 2024 10:56:57 +0200 Received: from [2a0a:edc0:0:900:1d::4e] (helo=lupine) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ruTlI-00BSie-TL; Wed, 10 Apr 2024 10:56:56 +0200 Received: from pza by lupine with local (Exim 4.96) (envelope-from ) id 1ruTlI-00050O-2l; Wed, 10 Apr 2024 10:56:56 +0200 Message-ID: Subject: Re: [RFC PATCH v2 1/5] clk: meson: axg: move reset controller's code to separate module From: Philipp Zabel To: Stephen Boyd , Conor Dooley Cc: Jan Dakinevich , Jerome Brunet , Neil Armstrong , 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 Date: Wed, 10 Apr 2024 10:56:56 +0200 In-Reply-To: References: <20240328010831.884487-1-jan.dakinevich@salutedevices.com> <20240328010831.884487-2-jan.dakinevich@salutedevices.com> <1j7chfiz8e.fsf@starbuckisacylon.baylibre.com> <13617b7a892424d2b024c725505a6f4f.sboyd@kernel.org> <20240408-numerator-escargot-a642507a598e@spud> <20240409-shallow-voice-c84ed791bc7d@spud> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4-2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org On Di, 2024-04-09 at 19:27 -0700, Stephen Boyd wrote: > Quoting Conor Dooley (2024-04-09 05:05:37) > > On Mon, Apr 08, 2024 at 06:05:51PM +0100, Conor Dooley wrote: > >=20 > > > > > Seconded, the clk-mpfs/reset-mpfs and clk-starfive-jh7110-sys/res= et- > > > > > starfive-jh7110 drivers are examples of this. > > > > >=20 > > > > > > The auxiliary device creation function can also be in the > > > > > > drivers/reset/ directory so that the clk driver calls some func= tion > > > > > > to create and register the device. > > > > >=20 > > > > > I'm undecided about this, do you think mpfs_reset_controller_regi= ster() > > > > > and jh7110_reset_controller_register() should rather live with th= e > > > > > reset aux drivers in drivers/reset/ ? > > > >=20 > > > > Yes, and also mpfs_reset_read() and friends. We should pass the bas= e > > > > iomem pointer and parent device to mpfs_reset_adev_alloc() instead = and > > > > then move all that code into drivers/reset with some header file > > > > exported function to call. That way the clk driver hands over the d= ata > > > > without having to implement half the implementation. > > >=20 > > > I'll todo list that :) > >=20 > > Something like the below? > >=20 > > -- >8 -- > > From a12f281d2cb869bcd9a6ffc45d0c6a0d3aa2e9e2 Mon Sep 17 00:00:00 2001 > > From: Conor Dooley > > Date: Tue, 9 Apr 2024 11:54:34 +0100 > > Subject: [PATCH] clock, reset: microchip: move all mpfs reset code to t= he > > reset subsystem > >=20 > > > >=20 > > Signed-off-by: Conor Dooley >=20 > Looks pretty good. Yes, that does look convincing. regards Philipp