scsi: be2iscsi: Add warning message for unsupported adapter
authorKetan Mukadam <ketan.mukadam@avagotech.com>
Tue, 13 Dec 2016 10:26:05 +0000 (15:56 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 5 Jan 2017 05:21:13 +0000 (00:21 -0500)
Add a warning message to indicate obsolete/unsupported
BE2 Adapter Family devices

Signed-off-by: Ketan Mukadam <ketan.mukadam@avagotech.com>
Signed-off-by: Jitendra Bhivare <jitendra.bhivare@broadcom.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/be2iscsi/be_main.c
drivers/scsi/be2iscsi/be_mgmt.c

index d96f706893a67b1ae1e2cf224d21cf4f47eeb614..6372613e7516a5317d1aa27c81da04be77b26ca8 100644 (file)
@@ -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:
index 8acacd5ec796eb9468dbf688186fdb57c114f7e1..2f6d5c2ac32901c84627edabbceb29848a62e694 100644 (file)
@@ -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: