diff options
| author | Hans Zhang <[email protected]> | 2025-05-10 16:07:08 +0000 |
|---|---|---|
| committer | Manivannan Sadhasivam <[email protected]> | 2025-05-13 09:12:59 +0000 |
| commit | f46bfb1d3c6a601caad90eb3c11a1e1e17cccb1a (patch) | |
| tree | c4e059220b319d991a827ef4791dbfa7ed1d89f4 /drivers/pci/controller/dwc/pcie-qcom-ep.c | |
| parent | PCI: dw-rockchip: Fix PHY function call sequence in rockchip_pcie_phy_deinit() (diff) | |
| download | kernel-f46bfb1d3c6a601caad90eb3c11a1e1e17cccb1a.tar.gz kernel-f46bfb1d3c6a601caad90eb3c11a1e1e17cccb1a.zip | |
PCI: dwc: Return bool from link up check
PCIe link status check is supposed to return a boolean to indicate whether
the link is up or not. So, modify the link_up callbacks and
dw_pcie_link_up() function to return bool instead of int.
Signed-off-by: Hans Zhang <[email protected]>
[mani: commit message reword]
Signed-off-by: Manivannan Sadhasivam <[email protected]>
Reviewed-by: Manivannan Sadhasivam <[email protected]>
Reviewed-by: Niklas Cassel <[email protected]>
Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'drivers/pci/controller/dwc/pcie-qcom-ep.c')
| -rw-r--r-- | drivers/pci/controller/dwc/pcie-qcom-ep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/controller/dwc/pcie-qcom-ep.c b/drivers/pci/controller/dwc/pcie-qcom-ep.c index 46b1c6d19974..b3f7f42fa852 100644 --- a/drivers/pci/controller/dwc/pcie-qcom-ep.c +++ b/drivers/pci/controller/dwc/pcie-qcom-ep.c @@ -261,7 +261,7 @@ static void qcom_pcie_ep_configure_tcsr(struct qcom_pcie_ep *pcie_ep) } } -static int qcom_pcie_dw_link_up(struct dw_pcie *pci) +static bool qcom_pcie_dw_link_up(struct dw_pcie *pci) { struct qcom_pcie_ep *pcie_ep = to_pcie_ep(pci); u32 reg; |
