diff options
| author | Yuho Choi <dbgh9129@gmail.com> | 2026-08-02 18:11:46 -0400 |
|---|---|---|
| committer | Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com> | 2026-09-10 10:32:32 +0200 |
| commit | b9022584ebbae81f7bbe4a61bd1df0d0a95e1a99 (patch) | |
| tree | fea88688c5c35140145e7ee0905e98cc67cc868d /tools/lib/python | |
| parent | cee9395acd8043be0644b25c34bfa86623f2b935 (diff) | |
| download | linux-next-b9022584ebbae81f7bbe4a61bd1df0d0a95e1a99.tar.gz linux-next-b9022584ebbae81f7bbe4a61bd1df0d0a95e1a99.zip | |
PCI: xgene: Use managed clock for PCIe controller
xgene_pcie_init_port() obtains and enables the controller clock manually.
When xgene_pcie_setup() or pci_host_probe() fails, probe returns without
disabling, unpreparing, or releasing the clock. A failed enable also leaves
the clk_get() reference unreleased.
Use devm_clk_get_enabled() so the clock is unwound automatically on probe
failure and device removal.
Fixes: 5f6b6ccdbe1c ("PCI: xgene: Add APM X-Gene PCIe driver")
Signed-off-by: Yuho Choi <dbgh9129@gmail.com>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Link: https://patch.msgid.link/20260802221146.573233-1-dbgh9129@gmail.com
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
