diff options
author | James Bottomley <JBottomley@Odin.com> | 2015-11-12 07:06:18 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Odin.com> | 2015-11-12 07:06:18 -0500 |
commit | febdfbd2137a5727f70dfbf920105c07e6c2a21e (patch) | |
tree | 9483a5493ad3e08626e1f53ded594f88a6f4e710 /drivers/scsi/ibmvscsi | |
parent | 0da39687a15403251bdfd1c6fb18025c0607326b (diff) | |
parent | 2c5d16d6a9e7218e57b716e4fd9d77c776d21471 (diff) |
Merge tag '4.4-scsi-mkp' into misc
SCSI queue for 4.4.
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/ibmvscsi')
-rw-r--r-- | drivers/scsi/ibmvscsi/ibmvscsi.c | 10 | ||||
-rw-r--r-- | drivers/scsi/ibmvscsi/ibmvscsi.h | 1 |
2 files changed, 8 insertions, 3 deletions
diff --git a/drivers/scsi/ibmvscsi/ibmvscsi.c b/drivers/scsi/ibmvscsi/ibmvscsi.c index 6a41c36b16b0..adfef9db6f1e 100644 --- a/drivers/scsi/ibmvscsi/ibmvscsi.c +++ b/drivers/scsi/ibmvscsi/ibmvscsi.c | |||
@@ -106,9 +106,9 @@ MODULE_LICENSE("GPL"); | |||
106 | MODULE_VERSION(IBMVSCSI_VERSION); | 106 | MODULE_VERSION(IBMVSCSI_VERSION); |
107 | 107 | ||
108 | module_param_named(max_id, max_id, int, S_IRUGO | S_IWUSR); | 108 | module_param_named(max_id, max_id, int, S_IRUGO | S_IWUSR); |
109 | MODULE_PARM_DESC(max_id, "Largest ID value for each channel"); | 109 | MODULE_PARM_DESC(max_id, "Largest ID value for each channel [Default=64]"); |
110 | module_param_named(max_channel, max_channel, int, S_IRUGO | S_IWUSR); | 110 | module_param_named(max_channel, max_channel, int, S_IRUGO | S_IWUSR); |
111 | MODULE_PARM_DESC(max_channel, "Largest channel value"); | 111 | MODULE_PARM_DESC(max_channel, "Largest channel value [Default=3]"); |
112 | module_param_named(init_timeout, init_timeout, int, S_IRUGO | S_IWUSR); | 112 | module_param_named(init_timeout, init_timeout, int, S_IRUGO | S_IWUSR); |
113 | MODULE_PARM_DESC(init_timeout, "Initialization timeout in seconds"); | 113 | MODULE_PARM_DESC(init_timeout, "Initialization timeout in seconds"); |
114 | module_param_named(max_requests, max_requests, int, S_IRUGO); | 114 | module_param_named(max_requests, max_requests, int, S_IRUGO); |
@@ -2289,11 +2289,15 @@ static int ibmvscsi_probe(struct vio_dev *vdev, const struct vio_device_id *id) | |||
2289 | goto init_pool_failed; | 2289 | goto init_pool_failed; |
2290 | } | 2290 | } |
2291 | 2291 | ||
2292 | host->max_lun = 8; | 2292 | host->max_lun = IBMVSCSI_MAX_LUN; |
2293 | host->max_id = max_id; | 2293 | host->max_id = max_id; |
2294 | host->max_channel = max_channel; | 2294 | host->max_channel = max_channel; |
2295 | host->max_cmd_len = 16; | 2295 | host->max_cmd_len = 16; |
2296 | 2296 | ||
2297 | dev_info(dev, | ||
2298 | "Maximum ID: %d Maximum LUN: %llu Maximum Channel: %d\n", | ||
2299 | host->max_id, host->max_lun, host->max_channel); | ||
2300 | |||
2297 | if (scsi_add_host(hostdata->host, hostdata->dev)) | 2301 | if (scsi_add_host(hostdata->host, hostdata->dev)) |
2298 | goto add_host_failed; | 2302 | goto add_host_failed; |
2299 | 2303 | ||
diff --git a/drivers/scsi/ibmvscsi/ibmvscsi.h b/drivers/scsi/ibmvscsi/ibmvscsi.h index 7d64867c5dd1..1067367395cd 100644 --- a/drivers/scsi/ibmvscsi/ibmvscsi.h +++ b/drivers/scsi/ibmvscsi/ibmvscsi.h | |||
@@ -48,6 +48,7 @@ struct Scsi_Host; | |||
48 | #define IBMVSCSI_CMDS_PER_LUN_DEFAULT 16 | 48 | #define IBMVSCSI_CMDS_PER_LUN_DEFAULT 16 |
49 | #define IBMVSCSI_MAX_SECTORS_DEFAULT 256 /* 32 * 8 = default max I/O 32 pages */ | 49 | #define IBMVSCSI_MAX_SECTORS_DEFAULT 256 /* 32 * 8 = default max I/O 32 pages */ |
50 | #define IBMVSCSI_MAX_CMDS_PER_LUN 64 | 50 | #define IBMVSCSI_MAX_CMDS_PER_LUN 64 |
51 | #define IBMVSCSI_MAX_LUN 32 | ||
51 | 52 | ||
52 | /* ------------------------------------------------------------ | 53 | /* ------------------------------------------------------------ |
53 | * Data Structures | 54 | * Data Structures |