Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Philipp Zabel <p.zabel@pengutronix.de>
To: Geert Uytterhoeven <geert+renesas@glider.be>,
	Sudeep Holla	 <sudeep.holla@kernel.org>,
	Cristian Marussi <cristian.marussi@arm.com>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley	 <conor+dt@kernel.org>,
	Saravana Kannan <saravanak@kernel.org>,
	Ulf Hansson	 <ulfh@kernel.org>,
	"Rafael J . Wysocki" <rafael@kernel.org>,
	Michael Turquette	 <mturquette@baylibre.com>,
	Stephen Boyd <sboyd@kernel.org>,
	Brian Masney	 <bmasney@redhat.com>,
	Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>,
	 Vinod Koul <vkoul@kernel.org>,
	Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>,
	Kevin Hilman	 <khilman@baylibre.com>,
	Florian Fainelli <florian.fainelli@broadcom.com>,
	 Wolfram Sang <wsa+renesas@sang-engineering.com>,
	Marek Vasut <marek.vasut+renesas@mailbox.org>,
	Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: arm-scmi@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	 devicetree@vger.kernel.org, linux-pm@vger.kernel.org,
	linux-clk@vger.kernel.org, 	linux-renesas-soc@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 04/10] reset: Add reset_controller_get_provider()
Date: Fri, 10 Jul 2026 16:49:15 +0200	[thread overview]
Message-ID: <6fd99dbdf7930a98d3dbbd44c0b39658c1d5efd4.camel@pengutronix.de> (raw)
In-Reply-To: <c415dc5f468e62cd0e2a6b9639abb92a82c01324.1783505329.git.geert+renesas@glider.be>

On Mi, 2026-07-08 at 12:16 +0200, Geert Uytterhoeven wrote:
> The reset subsystem differs from the clock subsystem in multiple ways:
>   1. It does not provide a public way to lookup resets from a reset
>      provider (clock has of_clk_get_from_provider()),
>   2. The xlate callback does not return a reset object, but merely an
>      index, which is converted to a reset object by the reset core.
> 
> Hence add a public helper reset_controller_get_provider(), which just
> returns the provider, and will be used by the R-Car X5H Module
> Controller driver.
> 
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

Please don't. Only the owning reset controller driver and the reset
core should interact with struct reset_controller_dev internals.

I'd be very uncomfortable with a driver reaching directly into another
drivers reset_control_ops, bypassing the core entirely.

I think it would be better to let reset-scmi export a specialized
scmi_reset_assert/deassert/reset(id) API, and add a possibility to
suppress registering the reset-scmi reset controller, so that there
aren't two conflicting paths into scmi_reset_proto_ops.

If you want to stack two reset controllers, the upper one should go
through the proper channels: request exclusive reset controls and use
them via the reset_control_*() APIs from the ops.


regards
Philipp


  reply	other threads:[~2026-07-10 14:49 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-08 10:16 [PATCH v2 00/10] R-Car X5H Ironhide CPG/MDLC SCMI remapping support Geert Uytterhoeven
2026-07-08 10:16 ` [PATCH v2 01/10] firmware: arm_scmi: Add scmi_get_base_info() Geert Uytterhoeven
2026-07-08 10:16 ` [PATCH v2 02/10] of: property: fw_devlink: Add support for firmware Geert Uytterhoeven
2026-07-08 10:16 ` [PATCH v2 03/10] pmdomain: Make genpd_get_from_provider() public Geert Uytterhoeven
2026-07-08 10:16 ` [PATCH v2 04/10] reset: Add reset_controller_get_provider() Geert Uytterhoeven
2026-07-10 14:49   ` Philipp Zabel [this message]
2026-07-08 10:16 ` [PATCH v2 05/10] dt-bindings: clock: renesas,r8a78000-cpg: Add firmware property Geert Uytterhoeven
2026-07-10 10:21   ` Krzysztof Kozlowski
2026-07-10 11:02     ` Geert Uytterhoeven
2026-07-08 10:16 ` [PATCH v2 06/10] dt-bindings: power: renesas,r8a78000-mdlc: " Geert Uytterhoeven
2026-07-08 10:16 ` [PATCH v2 07/10] clk: renesas: r8a78000: Add SCMI remapping support Geert Uytterhoeven
2026-07-08 10:16 ` [PATCH v2 08/10] pmdomain: " Geert Uytterhoeven
2026-07-08 10:16 ` [PATCH v2 09/10] arm64: dts: renesas: ironhide: Enable SCMI devpd, sys, clock, and reset Geert Uytterhoeven
2026-07-08 15:42 ` [PATCH v2 00/10] R-Car X5H Ironhide CPG/MDLC SCMI remapping support Marek Vasut
2026-07-08 16:04   ` Geert Uytterhoeven
2026-07-08 16:48     ` Marek Vasut
2026-07-08 16:00 ` [PATCH v2 10/10] arm64: dts: renesas: ironhide: Add CPG/MDLC firmware properties Geert Uytterhoeven

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6fd99dbdf7930a98d3dbbd44c0b39658c1d5efd4.camel@pengutronix.de \
    --to=p.zabel@pengutronix.de \
    --cc=arm-scmi@vger.kernel.org \
    --cc=bartosz.golaszewski@oss.qualcomm.com \
    --cc=bmasney@redhat.com \
    --cc=conor+dt@kernel.org \
    --cc=cristian.marussi@arm.com \
    --cc=devicetree@vger.kernel.org \
    --cc=florian.fainelli@broadcom.com \
    --cc=geert+renesas@glider.be \
    --cc=khilman@baylibre.com \
    --cc=konrad.dybcio@oss.qualcomm.com \
    --cc=krzk+dt@kernel.org \
    --cc=kuninori.morimoto.gx@renesas.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=marek.vasut+renesas@mailbox.org \
    --cc=mturquette@baylibre.com \
    --cc=rafael@kernel.org \
    --cc=robh@kernel.org \
    --cc=saravanak@kernel.org \
    --cc=sboyd@kernel.org \
    --cc=sudeep.holla@kernel.org \
    --cc=ulfh@kernel.org \
    --cc=vkoul@kernel.org \
    --cc=wsa+renesas@sang-engineering.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox