|
@@ -206,7 +206,7 @@ static void pcie_write_cmd(struct controller *ctrl, u16 cmd, u16 mask)
|
|
|
mutex_unlock(&ctrl->ctrl_lock);
|
|
|
}
|
|
|
|
|
|
-static bool check_link_active(struct controller *ctrl)
|
|
|
+bool pciehp_check_link_active(struct controller *ctrl)
|
|
|
{
|
|
|
struct pci_dev *pdev = ctrl_dev(ctrl);
|
|
|
u16 lnk_status;
|
|
@@ -225,12 +225,12 @@ static void __pcie_wait_link_active(struct controller *ctrl, bool active)
|
|
|
{
|
|
|
int timeout = 1000;
|
|
|
|
|
|
- if (check_link_active(ctrl) == active)
|
|
|
+ if (pciehp_check_link_active(ctrl) == active)
|
|
|
return;
|
|
|
while (timeout > 0) {
|
|
|
msleep(10);
|
|
|
timeout -= 10;
|
|
|
- if (check_link_active(ctrl) == active)
|
|
|
+ if (pciehp_check_link_active(ctrl) == active)
|
|
|
return;
|
|
|
}
|
|
|
ctrl_dbg(ctrl, "Data Link Layer Link Active not %s in 1000 msec\n",
|