From mboxrd@z Thu Jan 1 00:00:00 1970 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 2F84223BB; Sat, 15 Feb 2025 12:50:22 +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=1739623823; cv=none; b=l7EWvJoe6yHG+c0nkQpdjNf4oToZuTtIO0XnzlUfk4VJX8g1+XZb6WV8NqYvIMUBhC5TSkR5p1HA1LP4sh+8mAuiDLd2l3QBkpo2Qol6LASxjom6MOMH1e6nK7C+YrtVxwPVY342xcUwNbXK/yevOroyWNQnfDkHX3S8sZhAPQo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739623823; c=relaxed/simple; bh=drN/Xok8UudjMurUXacPKQ2++MI+GHNgJsb1gQKHxmw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SxQI287W/cQwb9q0j2vOZFWxeh//FeHDG+Tm0GWlVrUlm2+97RWiKpTBLcuhyaV13x0oKE6F0A/JIehUfcj8CRZi44ztiYLu8uKMnld0ctTpNyZ1t0QYXieZcBA7t6N5bD8oIbPYzTIyOyES5tmCS4dXMk/STuCPYoVBv11DggA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=TI7OwbBe; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="TI7OwbBe" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 84BD0C4CEE9; Sat, 15 Feb 2025 12:50:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1739623822; bh=drN/Xok8UudjMurUXacPKQ2++MI+GHNgJsb1gQKHxmw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TI7OwbBejVq+s0MNcjVR0OO68WWGeU3nLMSFjv/iooPZQkFgekvtYlJVZMHL4yhGu X+NvMH38mriKk1PDUcyHjwbzECOAXrRCBNn9U36VXx/c8m+LhK9r+9CyTE6RYI4i18 r1pLW7R4TInPKnEeFX9WUG5PqtfWIPuLmmuUoi3E8A0A0/4ZupRtFx5ykSkJfxoWU1 JSSIsK/AtdQvdtCF3n/UYl3JTA4Hs4cA70QyCuK0IzY+i8/ZvMd1HSVZ2fGkRVyFmc 3KBpadsxw7ag6TDN+7Q0Rn0JRDwxVXa6Ic4DnHHR5HSm4OAwa2yr2Q1DySe1dJlh9Y F8vI+B2Os2Bpg== Date: Sat, 15 Feb 2025 12:50:12 +0000 From: Conor Dooley To: Doug Anderson Cc: Jerome Brunet , Greg Kroah-Hartman , Dave Ertman , Ira Weiny , "Rafael J. Wysocki" , Stephen Boyd , Arnd Bergmann , Danilo Krummrich , Conor Dooley , Daire McNamara , Philipp Zabel , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Hans de Goede , Ilpo =?iso-8859-1?Q?J=E4rvinen?= , Bryan O'Donoghue , Vladimir Kondratiev , Gregory CLEMENT , =?iso-8859-1?Q?Th=E9o?= Lebrun , Michael Turquette , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Kevin Hilman , Martin Blumenstingl , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, dri-devel@lists.freedesktop.org, platform-driver-x86@vger.kernel.org, linux-mips@vger.kernel.org, linux-clk@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org Subject: Re: [PATCH v3 2/7] reset: mpfs: use the auxiliary device creation helper Message-ID: <20250215-scared-clothing-942f9bf3d039@spud> References: <20250211-aux-device-create-helper-v3-0-7edb50524909@baylibre.com> <20250211-aux-device-create-helper-v3-2-7edb50524909@baylibre.com> <20250213-crown-clustered-81c6434c892b@spud> <1jv7tczytk.fsf@starbuckisacylon.baylibre.com> Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="2DqldZNjQ+dLYWFk" Content-Disposition: inline In-Reply-To: --2DqldZNjQ+dLYWFk Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 14, 2025 at 07:25:59AM -0800, Doug Anderson wrote: > Hi, >=20 > On Fri, Feb 14, 2025 at 12:59=E2=80=AFAM Jerome Brunet wrote: > > > > > One think that's always felt a bit meh to me is this id number stuff, > > > I just threw in 666 for meme value. > > > > :) > > > > > The whole thing seems super > > > arbitrary, do any of the users of this helper actually put meaningful > > > values into the id parameter? > > > > In example changes I've sent, no. > > > > In other simple usages (those using container_of()) of the auxiliary > > bus, I think there are a few that uses 0 and 1 for 2 instances. > > > > I guess your question is "do we really need this parameter here ?" > > > > We could remove it and still address 90% of the original target. > > > > Keeping it leaves the door open in case the figure above does not hold > > and it is pretty cheap to do. It could also enable drivers requiring an > > IDA to use the helper, possibly. >=20 > FWIW, once you resolve the conflicts in drm-misc with ti-sn65dsi86 > you'll need the ID value. ;-) >=20 > There was a big-ol' discussion here: >=20 > https://lore.kernel.org/r/8c2df6a903f87d4932586b25f1d3bd548fe8e6d1.172918= 0470.git.geert+renesas@glider.be >=20 > I eventually pushed v2 of the patch: >=20 > https://lore.kernel.org/r/7a68a0e3f927e26edca6040067fb653eb06efb79.173384= 0089.git.geert+renesas@glider.be Think it makes sense to have a "simplified" wrapper for the cases where the id has no meaning then? Not really a fan of the drivers coming up with magic numbers. --2DqldZNjQ+dLYWFk Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZ7CNhAAKCRB4tDGHoIJi 0tAUAQCqnRPkOySGXu//3wT8OcQkfE+e51feUW6fi3X49on2qQD9FeMpjQKlnQ9Q UjJ/Rxce6BMBO5o9ndbm21Ie8SKdSAY= =owAZ -----END PGP SIGNATURE----- --2DqldZNjQ+dLYWFk--