From: Hongling Zeng <zhongling0719@126.com>
To: vkoul@kernel.org, neil.armstrong@linaro.org, johan@kernel.org,
kishon@kernel.org, rogerq@ti.com
Cc: Hongling Zeng <zenghongling@kylinos.cn>, linux-phy@lists.infradead.org
Subject: Re: [PATCH v6 0/4] phy: ti-pipe3: Fix clock resource handling issues
Date: Sat, 11 Jul 2026 09:58:45 +0800 [thread overview]
Message-ID: <6A51A355.5000509@126.com> (raw)
In-Reply-To: <1782118512975255.3963.seg@mailgw.kylinos.cn>
Sorry for the noise,Gentle ping.
This series fixes clock/resource leak issues in TI PIPE3 PHY driver.
Could you please review?
Thanks,
Hongling
在 2026年06月19日 11:02, Hongling Zeng 写道:
> This patch series fixes multiple clock resource handling issues in the
> ti-pipe3 PHY driver.
>
> Patch 1 fixes a critical issue where ti_pipe3_init() was ignoring the
> return value of ti_pipe3_enable_clocks(), which could lead to unclocked
> hardware access and unbalanced clock disables.
>
> Patch 2 fixes a clock resource leak when probe fails after enabling
> the SATA refclk. The error path now properly disables the clock and
> cleans up runtime PM resources.
>
> Patch 3 fixes EPROBE_DEFER handling to prevent masking probe deferral
> errors. It uses devm_clk_get_optional() for SATA refclk to properly
> handle optional clocks while still propagating -EPROBE_DEFER and other
> error codes.
>
> Patch 4 fixes a clock leak in the init error path when regmap_update_bits()
> fails in PCIe mode, adding proper clock cleanup consistent with other
> error paths.
>
> These fixes ensure proper resource cleanup on probe and init failures,
> and prevent permanent driver initialization failures due to incorrect
> error handling.
>
> Change in v6:
> - Fix all clock leak paths comprehensively
>
> Changes in v5:
> - Add patch to fix ignored clock enable return value in ti_pipe3_init()
> - Improve error handling consistency across all paths
>
> Changes in v4:
> - Use devm_clk_get_optional() for SATA refclk
> - Drop manual -ENOENT handling
>
> Hongling Zeng (4):
> phy: ti-pipe3: Fix ignored clock enable return value in init
> phy: ti: pipe3: Fix clock resource leak on probe errors
> phy: ti-pipe3: Fix EPROBE_DEFER handling for clock resources
> phy: ti-pipe3: Fix clock leak in init error path
>
> drivers/phy/ti/phy-ti-pipe3.c | 58 ++++++++++++++++++++++++++++--------
> 1 file changed, 46 insertions(+), 12 deletions(-)
>
> --
> 2.25.1
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
next parent reply other threads:[~2026-07-11 1:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1782118512975255.3963.seg@mailgw.kylinos.cn>
2026-07-11 1:58 ` Hongling Zeng [this message]
2026-06-19 3:02 [PATCH v6 0/4] phy: ti-pipe3: Fix clock resource handling issues Hongling Zeng
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=6A51A355.5000509@126.com \
--to=zhongling0719@126.com \
--cc=johan@kernel.org \
--cc=kishon@kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=neil.armstrong@linaro.org \
--cc=rogerq@ti.com \
--cc=vkoul@kernel.org \
--cc=zenghongling@kylinos.cn \
/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