mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
ibmvscsi: set max_lun to 32
As defined in 4.6.9 of SAM-4, the encoding of LUN is on 5 bits (max_lun=32) and the current value is only 8. Set max_lun to IBMVSCSI_MAX_LUN (32). Signed-off-by: Laurent Vivier <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
This commit is contained in:
parent
e3678a0c4c
commit
3467a1468f
2 changed files with 2 additions and 1 deletions
|
|
@ -2289,7 +2289,7 @@ static int ibmvscsi_probe(struct vio_dev *vdev, const struct vio_device_id *id)
|
|||
goto init_pool_failed;
|
||||
}
|
||||
|
||||
host->max_lun = 8;
|
||||
host->max_lun = IBMVSCSI_MAX_LUN;
|
||||
host->max_id = max_id;
|
||||
host->max_channel = max_channel;
|
||||
host->max_cmd_len = 16;
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@ struct Scsi_Host;
|
|||
#define IBMVSCSI_CMDS_PER_LUN_DEFAULT 16
|
||||
#define IBMVSCSI_MAX_SECTORS_DEFAULT 256 /* 32 * 8 = default max I/O 32 pages */
|
||||
#define IBMVSCSI_MAX_CMDS_PER_LUN 64
|
||||
#define IBMVSCSI_MAX_LUN 32
|
||||
|
||||
/* ------------------------------------------------------------
|
||||
* Data Structures
|
||||
|
|
|
|||
Loading…
Reference in a new issue