* [PATCH 1/1] be2iscsi : Add warning message for unsupported adapter
@ 2015-07-31 22:20 Ketan Mukadam
2015-10-06 15:51 ` Mike Christie
0 siblings, 1 reply; 3+ messages in thread
From: Ketan Mukadam @ 2015-07-31 22:20 UTC (permalink / raw)
To: linux-scsi, michaelc; +Cc: Ketan Mukadam
Add a warning message to indicate obsolete/unsupported
BE2 Adapter Family devics
Signed-off-by: Ketan Mukadam <ketan.mukadam@avagotech.com>
---
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 7a6dbfb..9b0c5cc 100644
--- a/drivers/scsi/be2iscsi/be_main.c
+++ b/drivers/scsi/be2iscsi/be_main.c
@@ -5619,6 +5619,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 ca4016f..ac08adb 100644
--- a/drivers/scsi/be2iscsi/be_mgmt.c
+++ b/drivers/scsi/be2iscsi/be_mgmt.c
@@ -1535,7 +1535,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:
--
1.8.3.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] be2iscsi : Add warning message for unsupported adapter
2015-07-31 22:20 [PATCH 1/1] be2iscsi : Add warning message for unsupported adapter Ketan Mukadam
@ 2015-10-06 15:51 ` Mike Christie
2015-10-07 9:32 ` Ketan Mukadam
0 siblings, 1 reply; 3+ messages in thread
From: Mike Christie @ 2015-10-06 15:51 UTC (permalink / raw)
To: Ketan Mukadam, linux-scsi
On 07/31/2015 05:20 PM, Ketan Mukadam wrote:
> Add a warning message to indicate obsolete/unsupported
> BE2 Adapter Family devics
>
> Signed-off-by: Ketan Mukadam <ketan.mukadam@avagotech.com>
> ---
> 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 7a6dbfb..9b0c5cc 100644
> --- a/drivers/scsi/be2iscsi/be_main.c
> +++ b/drivers/scsi/be2iscsi/be_main.c
> @@ -5619,6 +5619,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");
I think you wanted this to be a "/" instead of a "," to match below, but
I am not sure if it matters too much.
> 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 ca4016f..ac08adb 100644
> --- a/drivers/scsi/be2iscsi/be_mgmt.c
> +++ b/drivers/scsi/be2iscsi/be_mgmt.c
> @@ -1535,7 +1535,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;
Were these the cards that were obsolete when the driver was first added.
If so then this seem fine.
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH 1/1] be2iscsi : Add warning message for unsupported adapter
2015-10-06 15:51 ` Mike Christie
@ 2015-10-07 9:32 ` Ketan Mukadam
0 siblings, 0 replies; 3+ messages in thread
From: Ketan Mukadam @ 2015-10-07 9:32 UTC (permalink / raw)
To: 'Mike Christie', linux-scsi
Mike,
We will not support these cards going forward and hence a warning message.
Ketan
-----Original Message-----
From: Mike Christie [mailto:michaelc@cs.wisc.edu]
Sent: Tuesday, October 06, 2015 9:21 PM
To: Ketan Mukadam; linux-scsi@vger.kernel.org
Subject: Re: [PATCH 1/1] be2iscsi : Add warning message for unsupported
adapter
On 07/31/2015 05:20 PM, Ketan Mukadam wrote:
> Add a warning message to indicate obsolete/unsupported
> BE2 Adapter Family devics
>
> Signed-off-by: Ketan Mukadam <ketan.mukadam@avagotech.com>
> ---
> 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 7a6dbfb..9b0c5cc 100644
> --- a/drivers/scsi/be2iscsi/be_main.c
> +++ b/drivers/scsi/be2iscsi/be_main.c
> @@ -5619,6 +5619,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");
I think you wanted this to be a "/" instead of a "," to match below, but I
am not sure if it matters too much.
> 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 ca4016f..ac08adb 100644
> --- a/drivers/scsi/be2iscsi/be_mgmt.c
> +++ b/drivers/scsi/be2iscsi/be_mgmt.c
> @@ -1535,7 +1535,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;
Were these the cards that were obsolete when the driver was first added.
If so then this seem fine.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-10-07 9:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-31 22:20 [PATCH 1/1] be2iscsi : Add warning message for unsupported adapter Ketan Mukadam
2015-10-06 15:51 ` Mike Christie
2015-10-07 9:32 ` Ketan Mukadam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox