Commit 0821f20d authored by Mingarelli, Thomas's avatar Mingarelli, Thomas Committed by Wim Van Sebroeck

watchdog: hpwdt: Patch to ignore auxilary iLO devices

This patch is to prevent hpwdt from loading on any auxilary iLO devices defined
after the initial (or main) iLO device. All auxilary iLO devices will have a
subsystem device ID set to 0x1979 in order for hpwdt to differentiate between
the two types.
Signed-off-by: default avatarThomas Mingarelli <thomas.mingarelli@hp.com>
Tested-by: default avatarLisa Mitchell <lisa.mitchell@hp.com>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent 0e7a3ed0
......@@ -802,6 +802,12 @@ static int hpwdt_init_one(struct pci_dev *dev,
return -ENODEV;
}
/*
* Ignore all auxilary iLO devices with the following PCI ID
*/
if (dev->subsystem_device == 0x1979)
return -ENODEV;
if (pci_enable_device(dev)) {
dev_warn(&dev->dev,
"Not possible to enable PCI Device: 0x%x:0x%x.\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment