From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Arina Kharlamova via B4 Relay
<devnull+arina.kharlamova.mbzuai.ac.ae@kernel.org>
Cc: "Pali Rohár" <pali@kernel.org>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Jiri Slaby" <jirislaby@kernel.org>,
"Gregory CLEMENT" <gregory.clement@bootlin.com>,
"Allen Yan" <yanwei@marvell.com>,
arina.kharlamova@mbzuai.ac.ae, linux-kernel@vger.kernel.org,
linux-serial@vger.kernel.org
Subject: Re: [PATCH] serial: mvebu-uart: disable the clock when probe fails
Date: Thu, 03 Dec 2026 11:53:04 +0100 [thread overview]
Message-ID: <8733sek54f.fsf@bootlin.com> (raw)
In-Reply-To: <20261129-s2p-v08-v1-1-342b7170e692@mbzuai.ac.ae> (Arina Kharlamova via's message of "Sun, 29 Nov 2026 11:28:12 +0400")
Hi Arina,
On 29/11/2026 at 11:28:12 +04, Arina Kharlamova via B4 Relay <devnull+arina.kharlamova.mbzuai.ac.ae@kernel.org> wrote:
> From: Arina Kharlamova <arina.kharlamova@mbzuai.ac.ae>
>
> mvebu_uart_probe() prepares and enables the UART clock, but the later
> returns for a missing interrupt, including -EPROBE_DEFER from
> platform_get_irq(), and for a failed uart_add_one_port() leave it
> enabled. The clock comes from devm_clk_get(), so devres only puts it,
> and every deferred probe raises the enable count by one more.
Wouldn't using devm_clk_get_optional_enabled() (or a similar function)
be more suitable and avoid most of the churn introduced by this patch?
Thanks,
Miquèl
prev parent reply other threads:[~2026-12-03 10:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-29 7:28 [PATCH] serial: mvebu-uart: disable the clock when probe fails Arina Kharlamova
2026-11-29 7:28 ` Arina Kharlamova via B4 Relay
2026-11-29 7:36 ` sashiko-bot
2026-12-03 10:53 ` Miquel Raynal [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=8733sek54f.fsf@bootlin.com \
--to=miquel.raynal@bootlin.com \
--cc=arina.kharlamova@mbzuai.ac.ae \
--cc=devnull+arina.kharlamova.mbzuai.ac.ae@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=gregory.clement@bootlin.com \
--cc=jirislaby@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=pali@kernel.org \
--cc=yanwei@marvell.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.