Skip to content

Commit 0821f20

Browse files
Mingarelli, ThomasWim Van Sebroeck
authored andcommitted
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: Thomas Mingarelli <[email protected]> Tested-by: Lisa Mitchell <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
1 parent 0e7a3ed commit 0821f20

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/watchdog/hpwdt.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,12 @@ static int hpwdt_init_one(struct pci_dev *dev,
802802
return -ENODEV;
803803
}
804804

805+
/*
806+
* Ignore all auxilary iLO devices with the following PCI ID
807+
*/
808+
if (dev->subsystem_device == 0x1979)
809+
return -ENODEV;
810+
805811
if (pci_enable_device(dev)) {
806812
dev_warn(&dev->dev,
807813
"Not possible to enable PCI Device: 0x%x:0x%x.\n",

0 commit comments

Comments
 (0)