Skip to contentSkip to conversation

BNX2I - Add 5771E device support to bnx2i driver

PATCH In review Anil Veerabhadrappa 3 participants 4 messages Dec 7, 2009 – Dec 10, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/5 BNX2I - Add 5771E device support to bnx2i driver

* Add code to enumerate 5771E device

---
 drivers/scsi/bnx2i/bnx2i_init.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
drivers/scsi/bnx2i/bnx2i_init.c +5 -1
index 0c4210d..3c46458 100644
@@ -83,8 +83,12 @@ void bnx2i_identify_device(struct bnx2i_hba *hba)
 		set_bit(BNX2I_NX2_DEV_5709, &hba->cnic_dev_type);
 		hba->mail_queue_access = BNX2I_MQ_BIN_MODE;
 	} else if (hba->pci_did == PCI_DEVICE_ID_NX2_57710 ||
-		   hba->pci_did == PCI_DEVICE_ID_NX2_57711)
+		   hba->pci_did == PCI_DEVICE_ID_NX2_57711 ||
+		   hba->pci_did == PCI_DEVICE_ID_NX2_57711E)
 		set_bit(BNX2I_NX2_DEV_57710, &hba->cnic_dev_type);
+	else
+		printk(KERN_ALERT "bnx2i: unknown device, 0x%x\n", 
+				  hba->pci_did);
 }
 
 
Signature · 1 line
1.6.5.1
Reviewed-by on v1 1/5
#1 lore raw
Quoted 15 lines · Anil Veerabhadrappa

* Add code to enumerate 5771E device

---
 drivers/scsi/bnx2i/bnx2i_init.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
drivers/scsi/bnx2i/bnx2i_init.c +0 -0
index 0c4210d..3c46458 100644
@@ -83,8 +83,12 @@ void bnx2i_identify_device(struct bnx2i_hba *hba)
 		set_bit(BNX2I_NX2_DEV_5709, &hba->cnic_dev_type);
 		hba->mail_queue_access = BNX2I_MQ_BIN_MODE;
 	} else if (hba->pci_did == PCI_DEVICE_ID_NX2_57710 ||

drivers/scsi/bnx2i/bnx2i_init.c void bnx2i_identify_device(struct bnx2i_hba *hba) · line 94

Quoted 10 lines
drivers/scsi/bnx2i/bnx2i_init.c +5 -1
-		   hba->pci_did == PCI_DEVICE_ID_NX2_57711)
+		   hba->pci_did == PCI_DEVICE_ID_NX2_57711 ||
+		   hba->pci_did == PCI_DEVICE_ID_NX2_57711E)
 		set_bit(BNX2I_NX2_DEV_57710, &hba->cnic_dev_type);
+	else
+		printk(KERN_ALERT "bnx2i: unknown device, 0x%x\n", 
+				  hba->pci_did);
 }
 
 

Ok.

#2 lore raw
Quoted 1 line · Mike Christie

But not by checkpatch:

ERROR: trailing whitespace
#23: FILE: drivers/scsi/bnx2i/bnx2i_init.c:90:
+^I^Iprintk(KERN_ALERT "bnx2i: unknown device, 0x%x\n", $

total: 1 errors, 0 warnings, 13 lines checked

I've fixed it up. And the several other whitespace problems in the rest of the patch set.

James

#3 lore raw
Quoted 5 lines · James Bottomley
Quoted 1 line · Mike Christie

But not by checkpatch:

Quoted 9 lines

ERROR: trailing whitespace
#23: FILE: drivers/scsi/bnx2i/bnx2i_init.c:90:
+^I^Iprintk(KERN_ALERT "bnx2i: unknown device, 0x%x\n", $

total: 1 errors, 0 warnings, 13 lines checked

I've fixed it up. And the several other whitespace problems in the rest of the patch set.

Thanks James. In future will make sure not to repeat the slip-up.

Thanks again.

Quoted 4 lines

James