Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1197491lqe; Mon, 8 Apr 2024 01:22:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU8j1FhmVISqBYwZsrJwhPJnnUVQOvnmE3TM/Is1zON1UZ3uzk44WFeBztUPN+NhUfhEnZEge1P7niJ5RpfiGSoouSX2TApBpZXfeSfNQ== X-Google-Smtp-Source: AGHT+IEc9dbIvHBwLLBXZb5EhW5CMwyFDs+qD3+h2QmmL2gN3wY4cXgB447o37FWL2TuaQSp6e3T X-Received: by 2002:a17:906:78b:b0:a51:a0c4:5c83 with SMTP id l11-20020a170906078b00b00a51a0c45c83mr4207786ejc.20.1712564533259; Mon, 08 Apr 2024 01:22:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712564533; cv=pass; d=google.com; s=arc-20160816; b=eXBh4B9CcfyJIFl/Jb/rPje6juiQ7NGMV8Y3LatVt1DJoQxr/MTQirsDhXIDv+eaDA jk+RgXQsTAV/qxQyL3sxHxyq7XsUjnD5+xBFo8vu7T394VlGo678qi8PrvsGx6TQzvOy apLomyVLdPtZqADSvz8SkFm8W+lkWmdO20wYNL3OyYJc1ZGeKiMAQB3XXs4PgNLGguMb 7sC6UiJVOjR+C+PCXNfNIiLnZNVgexWVwxkBQa6TnlfxlYlrdwRRZJZ10p6hddhGN5Sd 6JO7SVHrw9CvkdfvDi8Mrw6AzwD59zKNwiDoRGyMNS0nwQiHLs8SJzKP+zhhJyg4MvKS I4iA== 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=cMd1gwnz0UOQxewqSWZR27Y7MV3H7URencCBIZpFZ08=; fh=GVD4uOHQImPE98rm27xwic/hLCnIKVsr9pa+Febh8Rs=; b=wp0BH4Qe4Nvk5QmSXO68HQGDliXCYSwkQCQsmgwS9kVP5HAykhPhevVb5p7fc8czOP qZwHST6KjpWd2UKMY117acPa5wRw2dPR8x0BlO7xfZIM3jGdFPRd7GRaY+rST+nxnIhm GXoSCxCuGK5rl0k/Phkx7vScU4tsQOuj7UZ/hzgPP4SSL1U52sN22hhfWAjQziaPM1AD b+L1dGwfTMNCqOux0YCBsXBvd0Ndr1NfYdKISFMOCTahwwllDS5Pq60d78B5Stoz3dBE TKK2t4itVz1XXmw5am0fKuCErYkNFXfP3hnE6tpUhcbMP6Z54BBwH2mcFL6Kclf3NnAQ ZHkQ==; 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-135024-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135024-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id qb34-20020a1709077ea200b00a4e2816280bsi3684495ejc.36.2024.04.08.01.22.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 01:22:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135024-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-135024-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135024-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 am.mirrors.kernel.org (Postfix) with ESMTPS id CFE651F226CC for ; Mon, 8 Apr 2024 08:22:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3A88731A66; Mon, 8 Apr 2024 08:22:06 +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 337BE2D796 for ; Mon, 8 Apr 2024 08:22:03 +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=1712564525; cv=none; b=I+MYTGLINU0GDuCMilEBSjDCntRjj8P4VAGaYylBkJu0Cd2OP7CusCdIx32ZldzH9NTYIfhIoXbqE+oBlgoJ4LC0W75HK8Cdx1s9KmaAlSPEgyygx9ZK53L0eictOyCx0mi8ufylHpf7FWj+WWUQh623Ly+Bb+KXVEoSI4Dm8+Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712564525; c=relaxed/simple; bh=cMd1gwnz0UOQxewqSWZR27Y7MV3H7URencCBIZpFZ08=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=PF7p2+5ZPGaqGZM/B6yB0L/NgDhF6uFsL0J4OCqN6a9LphWEG+8ks494LevfLKCfm8/xTK7bXwguTXAXX6WfbXIbbFCtzRLqnvg8rRN2tjaHRC0+MXgPDTcM9GQZ43UVjfHLEccfbDTGM77YeLuRegEF/nQz6kGM8pGsLsA1ElU= 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 1rtkGC-0005va-HW; Mon, 08 Apr 2024 10:21:48 +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 1rtkGB-00B4mH-Hy; Mon, 08 Apr 2024 10:21:47 +0200 Received: from pza by lupine with local (Exim 4.96) (envelope-from ) id 1rtkGB-0003Lx-1e; Mon, 08 Apr 2024 10:21:47 +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 , Jan Dakinevich , Jerome Brunet Cc: 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: Mon, 08 Apr 2024 10:21:47 +0200 In-Reply-To: References: <20240328010831.884487-1-jan.dakinevich@salutedevices.com> <20240328010831.884487-2-jan.dakinevich@salutedevices.com> <1j7chfiz8e.fsf@starbuckisacylon.baylibre.com> 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 So, 2024-04-07 at 19:39 -0700, Stephen Boyd wrote: > 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 > > >=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 >=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. Seconded, the clk-mpfs/reset-mpfs and clk-starfive-jh7110-sys/reset- starfive-jh7110 drivers are examples of this. > 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. I'm undecided about this, do you think mpfs_reset_controller_register() and jh7110_reset_controller_register() should rather live with the reset aux drivers in drivers/reset/ ? regards Philipp