diff options
| author | Marek Vasut <[email protected]> | 2026-07-19 20:11:50 +0200 |
|---|---|---|
| committer | Marek Vasut <[email protected]> | 2026-08-02 22:15:37 +0200 |
| commit | 50d73309201df8fcaae64c8f02ac5413c11c8b56 (patch) | |
| tree | 15336808045c1fe860f59b6c40d259d979826979 | |
| parent | 99203d9dac5246937854fa41677365c66d2a2264 (diff) | |
pci: pcie-rcar-gen4: Handle always on reference clock
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]>
| -rw-r--r-- | drivers/pci/pci-rcar-gen4.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |
