From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
To: "Daniel Golle" <daniel@makrotopia.org>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Jiri Slaby" <jirislaby@kernel.org>,
"Matthias Brugger" <matthias.bgg@gmail.com>,
"Uwe Kleine-König" <u.kleine-koenig@baylibre.com>,
"Yu Jiaoliang" <yujiaoliang@vivo.com>,
"Andy Shevchenko" <andriy.shevchenko@linux.intel.com>,
"Changqi Hu" <changqi.hu@mediatek.com>,
"Sam Shih" <sam.shih@mediatek.com>,
"Steven Liu" <steven.liu@mediatek.com>,
"John Crispin" <john@phrozen.org>,
linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org
Subject: Re: [PATCH v2 1/2] tty: serial: 8250_mtk: enable baud clock
Date: Mon, 15 Sep 2025 15:41:25 +0200 [thread overview]
Message-ID: <bf054186-17fb-4ea4-9d07-488b6792a437@collabora.com> (raw)
In-Reply-To: <2de07b0a6d51d5d3bf3e55cd03cf75adfc91ee7d.1757941345.git.daniel@makrotopia.org>
Il 15/09/25 15:06, Daniel Golle ha scritto:
> Some MediaTek SoCs got a gated UART baud clock, which currently gets
> disabled as the clk subsystem believes it would be unused. This results in
> the uart freezing right after "clk: Disabling unused clocks" on those
> platforms.
>
> To fix this request the baud clock to be prepared and enabled during probe.
>
> Fixes: e32a83c70cf9 ("serial: 8250-mtk: modify mtk uart power and clock management")
> Suggested-by: Sam Shih <sam.shih@mediatek.com>
> Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Thanks for caring about power management. However, this and the addition in PM ops
should be a single commit. It's even using the same Fixes tag...! :-)
I've read both of the commits in this series and the code LGTM.
tty: serial: 8250_mtk: Enable baud clock and manage in runtime PM
Please, squash the two commits, after which...
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Cheers,
Angelo
> ---
> v2: no changes
>
> drivers/tty/serial/8250/8250_mtk.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/tty/serial/8250/8250_mtk.c b/drivers/tty/serial/8250/8250_mtk.c
> index b44de2ed7413..9329ed1f759d 100644
> --- a/drivers/tty/serial/8250/8250_mtk.c
> +++ b/drivers/tty/serial/8250/8250_mtk.c
> @@ -475,13 +475,13 @@ static int mtk8250_probe_of(struct platform_device *pdev, struct uart_port *p,
> int dmacnt;
> #endif
>
> - data->uart_clk = devm_clk_get(&pdev->dev, "baud");
> + data->uart_clk = devm_clk_get_enabled(&pdev->dev, "baud");
> if (IS_ERR(data->uart_clk)) {
> /*
> * For compatibility with older device trees try unnamed
> * clk when no baud clk can be found.
> */
> - data->uart_clk = devm_clk_get(&pdev->dev, NULL);
> + data->uart_clk = devm_clk_get_enabled(&pdev->dev, NULL);
> if (IS_ERR(data->uart_clk)) {
> dev_warn(&pdev->dev, "Can't get uart clock\n");
> return PTR_ERR(data->uart_clk);
next prev parent reply other threads:[~2025-09-15 13:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-15 13:06 [PATCH v2 1/2] tty: serial: 8250_mtk: enable baud clock Daniel Golle
2025-09-15 13:06 ` [PATCH v2 2/2] tty: serial: 8250_mtk: manage baud clock in runtime PM ops Daniel Golle
2025-09-15 13:41 ` AngeloGioacchino Del Regno [this message]
2025-09-15 14:51 ` [PATCH v2 1/2] tty: serial: 8250_mtk: enable baud clock Andy Shevchenko
2025-09-15 14:54 ` Andy Shevchenko
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=bf054186-17fb-4ea4-9d07-488b6792a437@collabora.com \
--to=angelogioacchino.delregno@collabora.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=changqi.hu@mediatek.com \
--cc=daniel@makrotopia.org \
--cc=gregkh@linuxfoundation.org \
--cc=jirislaby@kernel.org \
--cc=john@phrozen.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-serial@vger.kernel.org \
--cc=matthias.bgg@gmail.com \
--cc=sam.shih@mediatek.com \
--cc=steven.liu@mediatek.com \
--cc=u.kleine-koenig@baylibre.com \
--cc=yujiaoliang@vivo.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