]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
phy: zynqmp: fix clock error handling in xpsgtr_phy_init()
authorRadhey Shyam Pandey <radhey.shyam.pandey@amd.com>
Mon, 20 Jul 2026 15:38:30 +0000 (21:08 +0530)
committerVinod Koul <vkoul@kernel.org>
Wed, 22 Jul 2026 08:22:28 +0000 (13:52 +0530)
commite4779e2a16d600892aaf743438f6ce8cc4eb3c4c
treea676551343f34e1cda3304576259d1d66a81442f
parentbe2b5b17b7053fee142939076746d26b2d6c9702
phy: zynqmp: fix clock error handling in xpsgtr_phy_init()

Propagate clk_prepare_enable() failures to the caller instead of
returning success, and disable the reference clock on initialization
error paths to avoid leaking clock references when phy_exit() is not
called.

Fixes: 25d700833513 ("phy: xilinx: phy-zynqmp: dynamic clock support for power-save")
Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
Reviewed-by: Michal Simek <michal.simek@amd.com>
Link: https://patch.msgid.link/20260720153832.1130006-2-radhey.shyam.pandey@amd.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/xilinx/phy-zynqmp.c