Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1571022rdb; Mon, 8 Jan 2024 03:46:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IGEk3K99e+iu52YMhIWONWMAnM40s21ckcVefz7HKu4yLUzEfOe9eJ+qtC46Yw3MpnU05nv X-Received: by 2002:a05:622a:1894:b0:429:94e5:8503 with SMTP id v20-20020a05622a189400b0042994e58503mr2136105qtc.77.1704714407914; Mon, 08 Jan 2024 03:46:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704714407; cv=none; d=google.com; s=arc-20160816; b=uoraklPTl9FODDG/lkfpnA6gtZ6NFmxhx6PEsqklqlTFa5riPdCN2S9TuSYlnXHDaK fpplUy9CtWuFpmFrMofmFyrZ+MHR+0/uVfJsRjiGg3kpFJ8ZKjqUwAyAsid1pR5R8SL3 myq1IEyf6TBI/U0gNtDcXMDBczURepHWY3MKk+i92lEtE1jyChqTAMFlJYqInqbBBStD 3lVf0aT0NNgrzd3fzWQtI+GjuVZk/noiAfxLybr3u8/sXsiNjIzgLnN4xskQqiq/u5Ou SJMUR4RctaHoky6H1Eazg6ZPktrxJwDQKldQZ9kk8DE/jFIdlEVOJAX5rw3WXYPzDBCh E5jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=YcA0G2VkQYQTHgKiBt27nKjkF31oRbdvgVR1ltK2bgM=; fh=0Dhi8QRTxa7at49ODL8o6zbkmLcOR563jx+q8/cDy6A=; b=Zji8sYI3ov2gqwStZgZchlp8mOw/h6JoaHJn6j5rI4EuhjNf1NQQsAq4a0qahioE6/ hqlx7Ng9ZiwvnexDcnYDtloDckDMpTMNCUbtL6nnb/VW5wyq5PeM0QQ+Yiu1039Ts+IM VdF1pzs9WW3PKsMcixyaDGnhaetejjst031YdUzm+2PHIykY1ver+VyaXMAFho/ygjZz i8hsWHZ6eHNHNvqEe9M3XkNbP8MztBnneGdJD0dvyH0nFuaNLbm43IhAVXAs42UMfDwa zQucM83w/wCIX1exVath1HL3F0937dnmXhN0q0vJNmvkhxeZSdZ7RGDGiphVZR3sQEH5 77FQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-19453-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19453-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 10-20020ac8590a000000b0042836c0b309si7531187qty.459.2024.01.08.03.46.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 03:46:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19453-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-19453-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19453-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A00B31C221B2 for ; Mon, 8 Jan 2024 11:46:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9E5AA2941D; Mon, 8 Jan 2024 11:46:40 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org 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 26F2E29417 for ; Mon, 8 Jan 2024 11:46:36 +0000 (UTC) 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 1rMo5P-0002a4-7b; Mon, 08 Jan 2024 12:46:31 +0100 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) 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 1rMo5N-001ErC-IJ; Mon, 08 Jan 2024 12:46:29 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rMo5N-004rXs-1T; Mon, 08 Jan 2024 12:46:29 +0100 Date: Mon, 8 Jan 2024 12:46:29 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Philipp Stanner Cc: dri-devel@lists.freedesktop.org, Fabio Estevam , Daniel Vetter , "Rafael J. Wysocki" , Takashi Iwai , Greg Kroah-Hartman , Sascha Hauer , Maarten Lankhorst , linux-kernel@vger.kernel.org, Maxime Ripard , Mark Brown , NXP Linux Team , Thomas Zimmermann , Laurentiu Palcu , David Gow , Shawn Guo , David Airlie , Pengutronix Kernel Team , linux-arm-kernel@lists.infradead.org, Lucas Stach Subject: Re: [PATCH v2 1/2] platform_device: add devres function region-reqs Message-ID: References: <20240108092042.16949-2-pstanner@redhat.com> <20240108092042.16949-3-pstanner@redhat.com> <404aea6b7bb7874064153044f04f3b8f6fccb97b.camel@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="4r5afev3r6p7skdi" Content-Disposition: inline In-Reply-To: <404aea6b7bb7874064153044f04f3b8f6fccb97b.camel@redhat.com> X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@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 --4r5afev3r6p7skdi Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 08, 2024 at 10:45:31AM +0100, Philipp Stanner wrote: > On Mon, 2024-01-08 at 10:37 +0100, Uwe Kleine-K=F6nig wrote: > > Other than that I indifferent if this is a good idea. There are so many > > helpers around these functions ... >=20 > Around which, the devres functions in general? There are, but that's > kind of the point, unless we'd want everyone to call into the lowest > level region-request functions with their own devres callbacks. >=20 > In any case: What would your suggestion be, should parties who can't > (without restructuring very large parts of their code) ioremap() and > request() simultaneously just not use devres? See my patch #2 > Or is there another way to reach that goal that I'm not aware of? This wasn't a constructive feedback unfortunately and more a feeling than a measurable criticism. To actually improve the state, maybe first check what helpers are actually there, how they are used and if they are suitable to what they are used for. Having many helpers is a hint that the usage is complicated. Is that because the situation is complicated, or is this just a big pile of inconsistency that can be simplified and consolidated? Also I think there are helpers that take a resource type parameter (as your function) and others hard code it in the function name. Maybe unifying that would be nice, too. Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --4r5afev3r6p7skdi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmWb4I8ACgkQj4D7WH0S /k6x9wf/RNngXMX4s0qPs1qC/g9icFOmmH2DMWt97cJ3/OzyVs7x1qTteymH2ANR NGt8HE68vKkFyM6QoZz1z/1qAcMZLHWSO44ok7+cYVXfROHiVKe5/13ofkObfyMh 8aUYI/XXd/PXmXrWuxiCyCH8IdWoiBryBqd9DOWrssjqOb/QZyC0y4Mj34gDGWF2 dC/M0HByG8TnH/KPydYys5sHf68xdVTsDhABJtxNo/vDMc0yBdB8dzmb02GjM8Qy kC6odjtco3TBr5tPAJENW1F2pn7Rm3bMBeLEjwo68oAHTKrqpzkUo/v2rbo11MOf +NFUHJXT9gfOOY1B6rdzcT2WPmu+TQ== =38uX -----END PGP SIGNATURE----- --4r5afev3r6p7skdi--