Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8978884imu; Tue, 4 Dec 2018 18:23:33 -0800 (PST) X-Google-Smtp-Source: AFSGD/X+vA/uR0JnIhIT9Qa87YBTNFkl4sQQvqFjtE3+w37lgzlqf5JhGPjXuvo8P0z2MRC12hMe X-Received: by 2002:a17:902:15a8:: with SMTP id m37mr7683480pla.129.1543976613726; Tue, 04 Dec 2018 18:23:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543976613; cv=none; d=google.com; s=arc-20160816; b=ufvoblp+zJmPD8zP9BDDoSxZx7g2m8Dtpa2gZ3I9ZYGfdcnEC+MtuNohZEUvC/QtjL DPV9leTj/zLHpybwBl4zA0fdFiAv+jEx4ow2NH5AJSQjHkUY8lmLF427lq5wPkANZGbC OIoM9dlhUx1hNPT33S+BQtWtAI1MJoxpkL4y33Bf3PMbkNCly+sBxYak8ri3fQTKcBJn ViDgprfRo8rGVbpl8CUuctuWRItctv59xA8t58OmuwKxnDoyrw/EFQau2tUwuwBsz3Bo R+ch6JnbC5W6l9KYt0GqGPhbsBpI7lPNTJCsTMjDvPwQGEEYALvdVm6U7ewwTuHPk27S fS7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=jNfcjJNjZuohzClTkrtnzC0pdc2aQNpeWZox3n4zjJQ=; b=i+iig3fFqhGXxVbxUy+fBuO7OWgfDJEMJ25IQHh7Wt6aOS9Q6uOd0By/KNMzGle3Wp k4FYYy6giLdXdPZg1BEZRI0MYYmYkkD25KSzFiRClhxZjTl6twRkufM90DX0VMznPb5+ iVWxlhzGVatyy45lMKEMBtrP76uvnuPOsZibk4clB2EsHMFHC1yw/uzWMqHew/fjZ/kK cvIdJv5Y6VEQ1TBE9ybuH0uuPY+Cg0qM8JwP/ahbrCrM8Uj1ph6XirZnDvNvTNmF3tkw E5n17iqlQsXhfglJQOLXPsN/B//xHgJKtIz7K9y2tk9trlGg/htj1rRjBuezb8q1N6re Uk0g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 19si15873035pgq.215.2018.12.04.18.23.14; Tue, 04 Dec 2018 18:23:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726092AbeLECWh (ORCPT + 99 others); Tue, 4 Dec 2018 21:22:37 -0500 Received: from g9t1613g.houston.hpe.com ([15.241.32.99]:10197 "EHLO g9t1613g.houston.hpe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725834AbeLECWh (ORCPT ); Tue, 4 Dec 2018 21:22:37 -0500 Received: from g4t3426.houston.hpe.com (g4t3426.houston.hpe.com [15.241.140.75]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by g9t1613g.houston.hpe.com (Postfix) with ESMTPS id 3DA6960D35; Wed, 5 Dec 2018 02:22:38 +0000 (UTC) Received: from g9t2301.houston.hpecorp.net (g9t2301.houston.hpecorp.net [16.220.97.129]) by g4t3426.houston.hpe.com (Postfix) with ESMTP id BF6EA4E; Wed, 5 Dec 2018 02:22:35 +0000 (UTC) Received: from lxbuild.ftc.rdlabs.hpecorp.net (lxbuild.ftc.rdlabs.hpecorp.net [16.78.34.175]) by g9t2301.houston.hpecorp.net (Postfix) with ESMTP id 9BA1F4E; Wed, 5 Dec 2018 02:22:34 +0000 (UTC) From: Jerry Hoemann To: linux@roeck-us.net Cc: wim@linux-watchdog.org, linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, Jerry Hoemann Subject: [PATCH 1/1] watchdog/hpwdt: Do not claim unsupported hardware Date: Tue, 4 Dec 2018 19:22:18 -0700 Message-Id: <1543976538-75532-1-git-send-email-jerry.hoemann@hpe.com> X-Mailer: git-send-email 1.8.3.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Do not claim when SSID 0x0289 as the watchdog features are not enabled/validated by the firmware. Signed-off-by: Jerry Hoemann --- 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