aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_scsi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/s390/scsi/zfcp_scsi.c')
-rw-r--r--drivers/s390/scsi/zfcp_scsi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/s390/scsi/zfcp_scsi.c b/drivers/s390/scsi/zfcp_scsi.c
index bc7217b88989..1e8d0cc7e1df 100644
--- a/drivers/s390/scsi/zfcp_scsi.c
+++ b/drivers/s390/scsi/zfcp_scsi.c
@@ -143,7 +143,8 @@ static int zfcp_scsi_slave_alloc(struct scsi_device *sdev)
143 unit = zfcp_unit_find(port, zfcp_scsi_dev_lun(sdev)); 143 unit = zfcp_unit_find(port, zfcp_scsi_dev_lun(sdev));
144 if (unit) 144 if (unit)
145 put_device(&unit->dev); 145 put_device(&unit->dev);
146 else { 146
147 if (!unit && !(adapter->connection_features & FSF_FEATURE_NPIV_MODE)) {
147 put_device(&port->dev); 148 put_device(&port->dev);
148 return -ENXIO; 149 return -ENXIO;
149 } 150 }
@@ -309,8 +310,8 @@ int zfcp_adapter_scsi_register(struct zfcp_adapter *adapter)
309 } 310 }
310 311
311 /* tell the SCSI stack some characteristics of this adapter */ 312 /* tell the SCSI stack some characteristics of this adapter */
312 adapter->scsi_host->max_id = 1; 313 adapter->scsi_host->max_id = 511;
313 adapter->scsi_host->max_lun = 1; 314 adapter->scsi_host->max_lun = 0xFFFFFFFF;
314 adapter->scsi_host->max_channel = 0; 315 adapter->scsi_host->max_channel = 0;
315 adapter->scsi_host->unique_id = dev_id.devno; 316 adapter->scsi_host->unique_id = dev_id.devno;
316 adapter->scsi_host->max_cmd_len = 16; /* in struct fcp_cmnd */ 317 adapter->scsi_host->max_cmd_len = 16; /* in struct fcp_cmnd */
@@ -687,7 +688,6 @@ struct fc_function_template zfcp_transport_functions = {
687 .show_host_port_type = 1, 688 .show_host_port_type = 1,
688 .show_host_speed = 1, 689 .show_host_speed = 1,
689 .show_host_port_id = 1, 690 .show_host_port_id = 1,
690 .disable_target_scan = 1,
691 .dd_bsg_size = sizeof(struct zfcp_fsf_ct_els), 691 .dd_bsg_size = sizeof(struct zfcp_fsf_ct_els),
692}; 692};
693 693