Skip to content

Commit bed4e9c

Browse files
committed
PCI: shpchp: Fix AMD POGO identification
The fix for an AMD POGO erratum related to SHPC incorrectly identified the device. The workaround should be applied only for AMD POGO devices, but it was instead applied to: - all AMD bridges, and - all devices from any vendor with device ID 0x7458 Fixes: 53044f3 ("[PATCH] PCI Hotplug: shpchp: AMD POGO errata fix") Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com> Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent f2b775f commit bed4e9c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/pci/hotplug/shpchp_ctrl.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -585,13 +585,13 @@ static int shpchp_enable_slot (struct slot *p_slot)
585585
ctrl_dbg(ctrl, "%s: p_slot->pwr_save %x\n", __func__, p_slot->pwr_save);
586586
p_slot->hpc_ops->get_latch_status(p_slot, &getstatus);
587587

588-
if (((p_slot->ctrl->pci_dev->vendor == PCI_VENDOR_ID_AMD) ||
589-
(p_slot->ctrl->pci_dev->device == PCI_DEVICE_ID_AMD_POGO_7458))
588+
if ((p_slot->ctrl->pci_dev->vendor == PCI_VENDOR_ID_AMD &&
589+
p_slot->ctrl->pci_dev->device == PCI_DEVICE_ID_AMD_POGO_7458)
590590
&& p_slot->ctrl->num_slots == 1) {
591-
/* handle amd pogo errata; this must be done before enable */
591+
/* handle AMD POGO errata; this must be done before enable */
592592
amd_pogo_errata_save_misc_reg(p_slot);
593593
retval = board_added(p_slot);
594-
/* handle amd pogo errata; this must be done after enable */
594+
/* handle AMD POGO errata; this must be done after enable */
595595
amd_pogo_errata_restore_misc_reg(p_slot);
596596
} else
597597
retval = board_added(p_slot);

0 commit comments

Comments
 (0)