From patchwork Mon Dec 5 08:06:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jitendra Bhivare X-Patchwork-Id: 9460593 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 6C5A46071F for ; Mon, 5 Dec 2016 08:07:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5DCE520009 for ; Mon, 5 Dec 2016 08:07:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 52DBB2026B; Mon, 5 Dec 2016 08:07:34 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,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 D1F0D20009 for ; Mon, 5 Dec 2016 08:07:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751464AbcLEIHd (ORCPT ); Mon, 5 Dec 2016 03:07:33 -0500 Received: from mail-qt0-f181.google.com ([209.85.216.181]:36580 "EHLO mail-qt0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750849AbcLEIHc (ORCPT ); Mon, 5 Dec 2016 03:07:32 -0500 Received: by mail-qt0-f181.google.com with SMTP id w33so306292358qtc.3 for ; Mon, 05 Dec 2016 00:07:32 -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=L4qBJYtVPHX835vnFYj6LIq3RHBl3B1HURdlReZ0Jx4=; b=dR58tto3OSB9SjuI5mBWmEw+BA6LFCwoac7Nf1F2j8ijm2qgQoYhuGmasfUpvSUnoQ tn3QrTHJEtSLx9DfUe0VnenhgPEGNtxpBYKAMCt6OQ+Pulzt4NU80ZBh+dg0dgX/qhzq 2lBX0fD8mCSmmZCXAcK90On93gKV3iuM/n0r0= 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=L4qBJYtVPHX835vnFYj6LIq3RHBl3B1HURdlReZ0Jx4=; b=cIvZlBPol4AnfIP5pAs5s58+VQ5QOR9HgbkI4CPjOt7CJ38+BB4vVWeUQb9wY9FC7Q 71F4sFB+t6djCpb2vmKsagFRX6DipLO58HkELONxhp3pcRHPASm3HqTPm0jmMujPWpEM nZLZxNE1mHGtGe7l2/k+KUhQr+cen/4G9RVAgu2tNvOTHWKDZzKZSNAhuKLU+86+RBZL GUxK1FsvHquGB5f0OLMPHs6WR0GOKKSRdpQ187jakDv5tJiMF7g2J4cAxhNmNrGzDiK1 pasDkgnHxuJw1aak+hx18vxU1KoeVA1hxpuBzNe02W8vLTPqXxOt/AN4qVXVBAaskJgg kXLw== X-Gm-Message-State: AKaTC01RES+IgjCORgZ+aqVwKCqWcBoBMqFM/P/rVVj7n3bLSrJz4sczRi+y0bkCgV11hp0r X-Received: by 10.200.54.4 with SMTP id m4mr47643279qtb.141.1480925251657; Mon, 05 Dec 2016 00:07:31 -0800 (PST) Received: from android.dhcp.avagotech.net ([192.19.239.250]) by smtp.gmail.com with ESMTPSA id i19sm8890519qte.8.2016.12.05.00.07.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 05 Dec 2016 00:07:31 -0800 (PST) From: Jitendra Bhivare To: cleech@redhat.com, lduncan@suse.com Cc: linux-scsi@vger.kernel.org, Ketan Mukadam , Jitendra Bhivare Subject: [PATCH 11/12] be2iscsi: Add warning message for unsupported adapter Date: Mon, 5 Dec 2016 13:36:50 +0530 Message-Id: <1480925211-13223-12-git-send-email-jitendra.bhivare@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1480925211-13223-1-git-send-email-jitendra.bhivare@broadcom.com> References: <1480925211-13223-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 --- 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 3f3a138..08d0855 100644 --- a/drivers/scsi/be2iscsi/be_main.c +++ b/drivers/scsi/be2iscsi/be_main.c @@ -5663,6 +5663,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 @@ int beiscsi_boot_get_shandle(struct beiscsi_hba *phba, unsigned int *s_handle) 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: