Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 275928
b: refs/heads/master
c: fdbd3ce
h: refs/heads/master
v: v3
  • Loading branch information
Yinghai Lu authored and Jesse Barnes committed Nov 7, 2011
1 parent 70cc357 commit fa57bca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c54420d3302d30999060e2669d0800b85e5b5a20
refs/heads/master: fdbd3ce9efb3a045266f2f6b2f1b6047882ff092
11 changes: 2 additions & 9 deletions trunk/drivers/pci/hotplug/pciehp_hpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@ int pciehp_check_link_status(struct controller *ctrl)
return retval;
}

pcie_update_link_speed(ctrl->pcie->port->subordinate, lnk_status);

return retval;
}

Expand Down Expand Up @@ -484,7 +486,6 @@ int pciehp_power_on_slot(struct slot * slot)
u16 slot_cmd;
u16 cmd_mask;
u16 slot_status;
u16 lnk_status;
int retval = 0;

/* Clear sticky power-fault bit from previous power failures */
Expand Down Expand Up @@ -516,14 +517,6 @@ int pciehp_power_on_slot(struct slot * slot)
ctrl_dbg(ctrl, "%s: SLOTCTRL %x write cmd %x\n", __func__,
pci_pcie_cap(ctrl->pcie->port) + PCI_EXP_SLTCTL, slot_cmd);

retval = pciehp_readw(ctrl, PCI_EXP_LNKSTA, &lnk_status);
if (retval) {
ctrl_err(ctrl, "%s: Cannot read LNKSTA register\n",
__func__);
return retval;
}
pcie_update_link_speed(ctrl->pcie->port->subordinate, lnk_status);

return retval;
}

Expand Down

0 comments on commit fa57bca

Please sign in to comment.