Skip to content

Commit 1541a21

Browse files
maciej-w-rozyckibjorn-helgaas
authored andcommitted
powerpc/eeh: Rely on dev->link_active_reporting
Use dev->link_active_reporting to determine whether Data Link Layer Link Active Reporting is available rather than re-retrieving the capability. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Maciej W. Rozycki <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]>
1 parent 1f08739 commit 1541a21

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

arch/powerpc/kernel/eeh_pe.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -671,9 +671,8 @@ static void eeh_bridge_check_link(struct eeh_dev *edev)
671671
eeh_ops->write_config(edev, cap + PCI_EXP_LNKCTL, 2, val);
672672

673673
/* Check link */
674-
eeh_ops->read_config(edev, cap + PCI_EXP_LNKCAP, 4, &val);
675-
if (!(val & PCI_EXP_LNKCAP_DLLLARC)) {
676-
eeh_edev_dbg(edev, "No link reporting capability (0x%08x) \n", val);
674+
if (!edev->pdev->link_active_reporting) {
675+
eeh_edev_dbg(edev, "No link reporting capability\n");
677676
msleep(1000);
678677
return;
679678
}

0 commit comments

Comments
 (0)