mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Antonio Borneo <antonio.borneo@foss.st.com>
To: Linus Walleij <linusw@kernel.org>
Cc: Xiangwu Lai <laixiangwu@cmss.chinamobile.com>,
	Krzysztof Kozlowski <krzk@kernel.org>,
	Philipp Zabel <p.zabel@pengutronix.de>,
	Maxime Coquelin <mcoquelin.stm32@gmail.com>,
	Alexandre Torgue <alexandre.torgue@foss.st.com>,
	<linux-gpio@vger.kernel.org>,
	<linux-stm32@st-md-mailman.stormreply.com>,
	<linux-arm-kernel@lists.infradead.org>,
	<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2] pinctrl: stm32: Fix reset control leak in stm32_pctl_probe() error paths
Date: Thu, 26 Nov 2026 14:53:50 +0100	[thread overview]
Message-ID: <bb93567fd9951d909089704af4e6d58ae71292e8.camel@foss.st.com> (raw)
In-Reply-To: <CAD++jLn0tuzo8gUmn0rOKRe1q58L=q7-P+iQNkSmtntk6zyJKQ@mail.gmail.com>

On Thu, 2026-11-26 at 14:10 +0100, Linus Walleij wrote:
> Hi Antonio,
> 
> On Thu, Nov 19, 2026 at 12:27 PM Antonio Borneo
> <antonio.borneo@foss.st.com> 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.

Yes, that's reasonable.
I will only drop the use of the property from the Linux kernel!

Thanks for your feedback.

Regards
Antonio

      reply	other threads:[~2026-11-26 13:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-10  8:32 Xiangwu Lai
2026-11-18 21:08 ` Linus Walleij
2026-11-18 21:09 ` Linus Walleij
2026-11-19  6:09   ` Xiangwu Lai
2026-11-19 11:27     ` Antonio Borneo
2026-11-20  6:34       ` Xiangwu Lai
2026-11-26 13:10       ` Linus Walleij
2026-11-26 13:53         ` Antonio Borneo [this message]

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=bb93567fd9951d909089704af4e6d58ae71292e8.camel@foss.st.com \
    --to=antonio.borneo@foss.st.com \
    --cc=alexandre.torgue@foss.st.com \
    --cc=krzk@kernel.org \
    --cc=laixiangwu@cmss.chinamobile.com \
    --cc=linusw@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-stm32@st-md-mailman.stormreply.com \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=p.zabel@pengutronix.de \
    /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

all inboxes | Powered by JetHome®