Re: [PATCH 3/6] pmdomain: zte: Add a zx297520v3 power domain driver

From: Stefan Dösinger

Date: Thu Nov 26 2026 - 13:09:23 EST


Hi Ulf,

Thanks for the review!

Am Donnerstag, 26. November 2026, 15:26:20 Ostafrikanische Zeit schrieb Ulf
Hansson:
> This doesn't belong in this particular driver, but rather in the genpd
> core. In fact, we have a proposed patch [1] that is being discussed;
> but the bigger question is if we need genpd provider drivers to be
> removable at all.
>
> What is your use case for this?

It's extrapolated from the clock system maintainer's request to keep clk
drivers buildable as modules. The pmdomain is even less critical than clk and
can easily be unloaded and reloaded, even though I don't see much practical
application.

I see the following options, in order of preference:

1) Simply remove the device_link_add() call from the driver and add a line to
the patch description that this is deliberate to maybe shut up Sashiko.

2) Set .suppress_bind_attrs = true and make the option bool.

Note that the MFD parent is tristate and unbindable, but that should be ok as
the pmdomain consumers target its own node.

.suppress_bind_attrs = true combined with tristate isn't going to help. Unlike
the phy subsystem, pmdomain doesn't hold a reference to the driver, so you can
rmmod the pmdomain driver while there are active consumers.

Attachment: signature.asc
Description: This is a digitally signed message part.