From patchwork Thu Jun 7 08:24:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jitendra Bhivare X-Patchwork-Id: 10451429 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 E53D66037F for ; Thu, 7 Jun 2018 08:25:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D774029C41 for ; Thu, 7 Jun 2018 08:25:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CC78F29C4B; Thu, 7 Jun 2018 08:25:16 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI 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 7BACC29C41 for ; Thu, 7 Jun 2018 08:25:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932689AbeFGIZP (ORCPT ); Thu, 7 Jun 2018 04:25:15 -0400 Received: from mail-qt0-f196.google.com ([209.85.216.196]:46058 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932240AbeFGIZN (ORCPT ); Thu, 7 Jun 2018 04:25:13 -0400 Received: by mail-qt0-f196.google.com with SMTP id i18-v6so9267897qtp.12 for ; Thu, 07 Jun 2018 01:25:13 -0700 (PDT) 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=z1vzsbWrrv3Y3ew9uRTD8aKBz2Iu521B9u0xDn/0aR4=; b=fhqwp1xbYHcULgrk43fWe3A7piQWlDs+Ry4f8fsKh2BV6NqCJHy5m99UJ9fsHVrCtz Il7JwgtdD60xV1LUEqeWjjWkfLkw/PsxTMvS+uVeuEc+JnhMpWcp0nD3cdMOR3CQkyNd BYPVEjKwX8rcBWWpGo5YG1FJs2LJIIUCXr+s4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=z1vzsbWrrv3Y3ew9uRTD8aKBz2Iu521B9u0xDn/0aR4=; b=cIhNjhcKtKiqAwvdRP7e6WUvrduY54OQpoI8jvLXaX9d8anENpxFE0ZXODw+KrFufU fOVeOAzZGhqTA9cXqycWP2TmXVvTWliq/TyXl2mJ0D12wlezdhLhHwWrzwwyoeV72UO0 FqFZNXUpXhgZEgLhF2ALKekiScb3uwSbt27mh2mIFu1mmomnGu+cAaNOkGOgOM8mTWlT 0jBXNlq4QLeDBzSVxMyUR4YNg+GqhUS29Im20AZEYh6HsRoWmM+CEKCDqxMDcYtvrJde SblSRqD52qI9cnXuXKuVq82XEHrcV56DgkIBd8Koita94cbBV7qO4Y/vtlKMIZBAqcUc 5t0Q== X-Gm-Message-State: APt69E1mkwoPnbW905woKk5IoiEa1ZrL3IE01DcHxF3yQ63YS9V7pTJx c4LiYsciOrhnuH0cLcBVMdJVUA== X-Google-Smtp-Source: ADUXVKLmwXmm6b6F/iwpwkWYKzC7h7VVAqgiq/3uQNpXPqfJOkHzBGgFzRS0/wU2Ja5RmI1NrCZBMQ== X-Received: by 2002:ac8:1486:: with SMTP id l6-v6mr780916qtj.6.1528359913061; Thu, 07 Jun 2018 01:25:13 -0700 (PDT) Received: from android.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id k6-v6sm5179506qtm.30.2018.06.07.01.25.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Jun 2018 01:25:12 -0700 (PDT) From: Jitendra Bhivare To: cleech@redhat.com, lduncan@suse.com Cc: linux-scsi@vger.kernel.org, ketan.mukadam@broadcom.com Subject: [PATCH 2/3] scsi: be2iscsi: Add warnings for unsupported adapters Date: Thu, 7 Jun 2018 13:54:42 +0530 Message-Id: <1528359883-13054-3-git-send-email-jitendra.bhivare@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1528359883-13054-1-git-send-email-jitendra.bhivare@broadcom.com> References: <1528359883-13054-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 BE3 Adapter Family devices. Signed-off-by: Ketan Mukadam Reviewed-by: Jitendra Bhivare --- 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 b3cfdd5..2b4f524 100644 --- a/drivers/scsi/be2iscsi/be_main.c +++ b/drivers/scsi/be2iscsi/be_main.c @@ -5583,6 +5583,8 @@ static int beiscsi_dev_probe(struct pci_dev *pcidev, case OC_DEVICE_ID3: phba->generation = BE_GEN3; phba->iotask_fn = beiscsi_iotask; + dev_warn(&pcidev->dev, + "Obsolete/Unsupported BE3 Adapter Family\n"); break; case OC_SKH_ID1: phba->generation = BE_GEN4; diff --git a/drivers/scsi/be2iscsi/be_mgmt.c b/drivers/scsi/be2iscsi/be_mgmt.c index 66ca967..dff6cdf 100644 --- a/drivers/scsi/be2iscsi/be_mgmt.c +++ b/drivers/scsi/be2iscsi/be_mgmt.c @@ -1233,7 +1233,8 @@ beiscsi_adap_family_disp(struct device *dev, struct device_attribute *attr, break; case BE_DEVICE_ID2: case OC_DEVICE_ID3: - return snprintf(buf, PAGE_SIZE, "BE3-R Adapter Family\n"); + return snprintf(buf, PAGE_SIZE, + "Obsolete/Unsupported BE3-R Adapter Family\n"); break; case OC_SKH_ID1: return snprintf(buf, PAGE_SIZE, "Skyhawk-R Adapter Family\n");