Re: [PATCH 1/3] PCI: rzg3s: Disable refclk on probe failure

From: claudiu beznea

Date: Thu Jul 23 2026 - 13:35:23 EST




On 7/16/26 01:30, Prabhakar wrote:
From: Lad Prabhakar<prabhakar.mahadev-lad.rj@xxxxxxxxxxxxxx>

rzg3s_pcie_host_init_port() enables the PCIe reference clock using
clk_prepare_enable(), but if rzg3s_pcie_probe() subsequently fails, for
example because pci_host_probe() returns an error, the probe error path
only releases the clock handle with clk_put().

Balance clk_prepare_enable() by calling clk_disable_unprepare() in the
probe cleanup path before releasing the clock, ensuring the reference
clock is properly disabled on probe failure.

Fixes: 7ef502fb35b28 ("PCI: Add Renesas RZ/G3S host controller driver")
Cc:stable@xxxxxxxxxxxxxxx
Signed-off-by: Lad Prabhakar<prabhakar.mahadev-lad.rj@xxxxxxxxxxxxxx>

Reviewed-by: Claudiu Beznea <claudiu.beznea.uj@xxxxxxxxxxxxxx>