[PATCH 1/1] watchdog/hpwdt: Do not claim unsupported hardware

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Do not claim when SSID 0x0289 as the watchdog features
are not enabled/validated by the firmware.

Signed-off-by: Jerry Hoemann <jerry.hoemann@xxxxxxx>
---
 drivers/watchdog/hpwdt.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/drivers/watchdog/hpwdt.c b/drivers/watchdog/hpwdt.c
index 9356230..b99ef0a4 100644
--- a/drivers/watchdog/hpwdt.c
+++ b/drivers/watchdog/hpwdt.c
@@ -281,6 +281,17 @@ static int hpwdt_init_one(struct pci_dev *dev,
 	    dev->subsystem_device == 0x1979)
 		return -ENODEV;
 
+	/*
+	 * Ignore unsupported hardware
+	 */
+	if (dev->vendor == PCI_VENDOR_ID_HP &&
+	    dev->device == 0x3306 &&
+	    dev->subsystem_vendor == PCI_VENDOR_ID_HP_3PAR &&
+	    dev->subsystem_device == 0x0289) {
+		dev_info(&dev->dev, "Not supported on this platform\n");
+		return -ENODEV;
+	}
+
 	if (pci_enable_device(dev)) {
 		dev_warn(&dev->dev,
 			"Not possible to enable PCI Device: 0x%x:0x%x.\n",
-- 
1.8.3.1




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux