Re: [PATCH v2] pinctrl: stm32: Fix reset control leak in stm32_pctl_probe() error paths

From: Linus Walleij

Date: Thu Nov 26 2026 - 08:10:39 EST


Hi Antonio,

On Thu, Nov 19, 2026 at 12:27 PM Antonio Borneo
<antonio.borneo@xxxxxxxxxxx> wrote:

> The driver's "resets" property is not currently used by any upstream DT.
> Using it is also problematic, as asserting the reset affects all GPIOs in
> the bank, including those already configured by the bootloader or secure
> world. The current driver uses this only to deassert the reset during
> probe.
>
> As part of the cleanup following the planned removal of armv7m support,
> I was considering removing this unused property from both the binding and
> the driver. Although the ST reference manual documents a per-bank reset,
> I lean toward removing its support given the maintenance burden of unused
> code.
>
> I've added Krzysztof in copy to get his early feedback on whether removing
> the "resets" property from the binding would be acceptable and appropriate.

Why would you remove the property from the bindings?

The DT describes the hardware, the block has a reset, it should be in the
binding, end of story. Things such as boot loaders could be using the
same device tree and may need the property.

You might want to delete the *use* of that property from the Linux
kernel, so as to leave the hardware in the bring-up state. That is
a Linux concern and has nothing to do with the bindings.

We don't remove DT properties to protect people from themselves,
that's not what they are for.

Yours,
Linus Walleij