On 7/19/26 20:11, Marek Vasut wrote:
The clock controller driver for the device which supplies reference
clock to the PCIe core and bus may not implement .enable / .disable
callbacks in case the clock supplied by the device are always on,
in which case the clk_prepare_enable() call returns -ENOSYS. This
is the case on e.g. 9FGV0441. Handle the -ENOSYS as a valid return
value and proceed with probing.
Signed-off-by: Marek Vasut <[email protected]>
---
Cc: Lukasz Majewski <[email protected]>
Cc: Nobuhiro Iwamatsu <[email protected]>
Cc: Peng Fan <[email protected]>
Cc: Quentin Schulz <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
---
drivers/pci/pci-rcar-gen4.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pci/pci-rcar-gen4.c b/drivers/pci/pci-rcar-gen4.c
index e165271f58c..8c5c8095c73 100644
--- a/drivers/pci/pci-rcar-gen4.c
+++ b/drivers/pci/pci-rcar-gen4.c
@@ -451,7 +451,7 @@ static int rcar_gen4_pcie_probe(struct udevice *dev)
return PTR_ERR(rcar->ref_clk);
ret = clk_prepare_enable(rcar->ref_clk);
- if (ret)
+ if (ret && ret != -ENOSYS)
return ret;
ret = gpio_request_by_name(dev, "reset-gpios", 0, &rcar->pe_rst,
Reviewed-by: Neil Armstrong <[email protected]>
Thanks,
Neil