From patchwork Tue Dec 13 10:26:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jitendra Bhivare X-Patchwork-Id: 9472039 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1BE59607EE for ; Tue, 13 Dec 2016 10:27:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0141A2858F for ; Tue, 13 Dec 2016 10:27:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EA99528591; Tue, 13 Dec 2016 10:27:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DC54D2858F for ; Tue, 13 Dec 2016 10:27:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932570AbcLMK1T (ORCPT ); Tue, 13 Dec 2016 05:27:19 -0500 Received: from mail-qt0-f172.google.com ([209.85.216.172]:34410 "EHLO mail-qt0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932562AbcLMK1S (ORCPT ); Tue, 13 Dec 2016 05:27:18 -0500 Received: by mail-qt0-f172.google.com with SMTP id n6so102374573qtd.1 for ; Tue, 13 Dec 2016 02:27:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=iPBWtp1o105fyHCiUMrpEMvhM0FZtW75KLllw6EwK9g=; b=e5dj4OjRsBBst1//DcaWA4t9c8LfkHS7JNuPytPk5pkLDGGv7pToIWrs8Wu9k69TF3 Gsyv9KuuuXJMrNXqoWAZ6u9oRwWxZ8jAhsotUBuKAywr2jeq2Q/jU7y06pnizTxeWhSJ pRP01ITnH+OPQGPMEZitXyuZCN2Kvodhl2ZPg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=iPBWtp1o105fyHCiUMrpEMvhM0FZtW75KLllw6EwK9g=; b=cI5Nn60YBsAzGxCr/2t2Y+kETaa78ofa50+2Csjxq/6tpy1W6fiHh0QhgWIufMdKYG Usb80HJio9C3wC3BVCn2sHLfxGjpspcjOFQ0YxQa27uEEmSxnPGeeLxwtLs0rOzhDq7Y Fj2r+RJw1uOZzPBRXbzP10D6Wq6gXx3fcjT5ur4Szzcvi6abNO5d9m383aF2d8PrWQ6L s0ciHDrQ+tnejlrwnqrmDFfeHUaorgwVNishIwylJN3ds1lwEM1P+jGKDwJpzVz7Ax7Q xnxdvAvZnZDemxjqg5zzr6AQsSdqD2d4MjOyW0NcX8lxg/vpzxb6O+dcBYwALG6O0LYw cuXA== X-Gm-Message-State: AKaTC02RhRUhvBWLTQzEfGKCpaipcoe+esWrtrTYL6+cgDjcgoNhPThGO2atWkQxTtyr9iJi X-Received: by 10.200.40.55 with SMTP id 52mr96841067qtq.283.1481624837591; Tue, 13 Dec 2016 02:27:17 -0800 (PST) Received: from android.dhcp.avagotech.net ([192.19.239.250]) by smtp.gmail.com with ESMTPSA id t124sm28606864qke.3.2016.12.13.02.27.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Dec 2016 02:27:17 -0800 (PST) From: Jitendra Bhivare To: cleech@redhat.com, lduncan@suse.com Cc: linux-scsi@vger.kernel.org, Ketan Mukadam , Jitendra Bhivare Subject: [PATCH v2 12/13] be2iscsi: Add warning message for unsupported adapter Date: Tue, 13 Dec 2016 15:56:05 +0530 Message-Id: <1481624766-13846-13-git-send-email-jitendra.bhivare@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1481624766-13846-1-git-send-email-jitendra.bhivare@broadcom.com> References: <1481624766-13846-1-git-send-email-jitendra.bhivare@broadcom.com> Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Ketan Mukadam Add a warning message to indicate obsolete/unsupported BE2 Adapter Family devices Signed-off-by: Ketan Mukadam Signed-off-by: Jitendra Bhivare Reviewed-by: Hannes Reinecke --- drivers/scsi/be2iscsi/be_main.c | 2 ++ drivers/scsi/be2iscsi/be_mgmt.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c index d96f7068..6372613 100644 --- a/drivers/scsi/be2iscsi/be_main.c +++ b/drivers/scsi/be2iscsi/be_main.c @@ -5640,6 +5640,8 @@ static int beiscsi_dev_probe(struct pci_dev *pcidev, case OC_DEVICE_ID2: phba->generation = BE_GEN2; phba->iotask_fn = beiscsi_iotask; + dev_warn(&pcidev->dev, + "Obsolete/Unsupported BE2 Adapter Family\n"); break; case BE_DEVICE_ID2: case OC_DEVICE_ID3: diff --git a/drivers/scsi/be2iscsi/be_mgmt.c b/drivers/scsi/be2iscsi/be_mgmt.c index 8acacd5e..2f6d5c2 100644 --- a/drivers/scsi/be2iscsi/be_mgmt.c +++ b/drivers/scsi/be2iscsi/be_mgmt.c @@ -1262,7 +1262,8 @@ beiscsi_adap_family_disp(struct device *dev, struct device_attribute *attr, case BE_DEVICE_ID1: case OC_DEVICE_ID1: case OC_DEVICE_ID2: - return snprintf(buf, PAGE_SIZE, "BE2 Adapter Family\n"); + return snprintf(buf, PAGE_SIZE, + "Obsolete/Unsupported BE2 Adapter Family\n"); break; case BE_DEVICE_ID2: case OC_DEVICE_ID3: