PATCH [9/11] qla2xxx: Consolidate ISP63xx support
Subsystems (2)
ChangeSet
1.2243 04/12/08 21:49:42 [email protected] +5 -0 Recent ISP6312 FLX firmware can support both ISP6312 and ISP6322 chips. Consolidate ISP6322 handling into the ISP6312 firmware loader files.
Remove ql6322.c file.
Signed-off-by Andrew Vasquez <[email protected]>
drivers/scsi/qla2xxx/ql6322.c | 108 ----------------------------------------- drivers/scsi/qla2xxx/Kconfig | 14 +---- drivers/scsi/qla2xxx/Makefile | 2 drivers/scsi/qla2xxx/ql6312.c | 14 ++++- drivers/scsi/qla2xxx/qla_def.h | 6 -- 5 files changed, 18 insertions(+), 126 deletions(-)
drivers/scsi/qla2xxx/Kconfig +4 -10
@@ -22,7 +22,7 @@ depends on SCSI_QLA2XXX select SCSI_FC_ATTRS ---help--- - This driver supports the QLogic 2300 (ISP2300, and ISP2312) host + This driver supports the QLogic 2300 (ISP2300 and ISP2312) host adapter family. config SCSI_QLA2322
@@ -33,15 +33,9 @@ This driver supports the QLogic 2322 (ISP2322) host adapter family. config SCSI_QLA6312 - tristate "QLogic ISP6312 host adapter family support" + tristate "QLogic ISP63xx host adapter family support" depends on SCSI_QLA2XXX select SCSI_FC_ATTRS ---help--- - This driver supports the QLogic 6312 (ISP6312) host adapter family. - -config SCSI_QLA6322 - tristate "QLogic ISP6322 host adapter family support" - depends on SCSI_QLA2XXX - select SCSI_FC_ATTRS - ---help--- - This driver supports the QLogic 6322 (ISP6322) host adapter family. + This driver supports the QLogic 63xx (ISP6312 and ISP6322) host + adapter family.
drivers/scsi/qla2xxx/Makefile +0 -2
@@ -8,11 +8,9 @@ qla2300-y := ql2300.o ql2300_fw.o qla2322-y := ql2322.o ql2322_fw.o qla6312-y := ql6312.o ql6312_fw.o -qla6322-y := ql6322.o ql6322_fw.o obj-$(CONFIG_SCSI_QLA21XX) += qla2xxx.o qla2100.o obj-$(CONFIG_SCSI_QLA22XX) += qla2xxx.o qla2200.o obj-$(CONFIG_SCSI_QLA2300) += qla2xxx.o qla2300.o obj-$(CONFIG_SCSI_QLA2322) += qla2xxx.o qla2322.o obj-$(CONFIG_SCSI_QLA6312) += qla2xxx.o qla6312.o -obj-$(CONFIG_SCSI_QLA6322) += qla2xxx.o qla6322.o
drivers/scsi/qla2xxx/ql6312.c +13 -1
@@ -35,6 +35,11 @@ .isp_name = "ISP6312", .fw_info = qla_fw_tbl, }, + { + .drv_name = qla_driver_name, + .isp_name = "ISP6322", + .fw_info = qla_fw_tbl, + }, };static struct pci_device_id qla6312_pci_tbl[] = {
@@ -45,6 +50,13 @@ .subdevice = PCI_ANY_ID, .driver_data = (unsigned long)&qla_board_tbl[0], }, + { + .vendor = PCI_VENDOR_ID_QLOGIC, + .device = PCI_DEVICE_ID_QLOGIC_ISP6322, + .subvendor = PCI_ANY_ID, + .subdevice = PCI_ANY_ID, + .driver_data = (unsigned long)&qla_board_tbl[1], + }, {0, 0}, }; MODULE_DEVICE_TABLE(pci, qla6312_pci_tbl);
@@ -85,6 +97,6 @@module_exit (qla6312_exit);MODULE_AUTHOR ("QLogic Corporation" ); -MODULE_DESCRIPTION ("QLogic ISP6312 FC-SCSI Host Bus Adapter driver" ); +MODULE_DESCRIPTION ("QLogic ISP63xx FC-SCSI Host Bus Adapter driver" );MODULE_LICENSE ("GPL" );MODULE_VERSION (QLA2XXX_VERSION );
drivers/scsi/qla2xxx/ql6322.c deleted +0 -108
108 lines not on this page · raw message
drivers/scsi/qla2xxx/qla_def.h +1 -5
@@ -89,13 +89,9 @@#if defined(CONFIG_SCSI_QLA6312 ) || defined(CONFIG_SCSI_QLA6312_MODULE )#define IS_QLA6312 (ha) ((ha)->pdev->device == PCI_DEVICE_ID_QLOGIC_ISP6312) -#else -#define IS_QLA6312 (ha) 0 -#endif - -#if defined(CONFIG_SCSI_QLA6322 ) || defined(CONFIG_SCSI_QLA6322_MODULE )#define IS_QLA6322 (ha) ((ha)->pdev->device == PCI_DEVICE_ID_QLOGIC_ISP6322)#else +#define IS_QLA6312 (ha) 0#define IS_QLA6322 (ha) 0#endif