patch-2.3.19 linux/drivers/scsi/qlogicfc.c

Next file: linux/drivers/scsi/qlogicfc_asm.c
Previous file: linux/drivers/scsi/ips.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.18/linux/drivers/scsi/qlogicfc.c linux/drivers/scsi/qlogicfc.c
@@ -629,7 +629,8 @@
 #define QLOGICFC_MAX_ID    0x7d
 #endif
 
-#define QLOGICFC_MAX_LOOP_ID 0x7d
+#define QLOGICFC_MAX_LUN	128
+#define QLOGICFC_MAX_LOOP_ID	0x7d
 
 /* adapter_state values */
 #define AS_FIRMWARE_DEAD      -1
@@ -744,6 +745,7 @@
 
 		        host = scsi_register(tmpt, sizeof(struct isp2x00_hostdata));
 			host->max_id = QLOGICFC_MAX_ID + 1;
+			host->max_lun = QLOGICFC_MAX_LUN;
 			host->hostt->use_new_eh_code = 1;
 			hostdata = (struct isp2x00_hostdata *) host->hostdata;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)