Commit ae5e33af authored by Finn Thain's avatar Finn Thain Committed by Martin K. Petersen

ncr5380: Reduce max_lun limit

The driver has a limit of eight LUs because of the byte-sized bitfield
that is used for busy flags. That means the maximum LUN is 7. The default
is 8.
Signed-off-by: default avatarFinn Thain <fthain@telegraphics.com.au>
Tested-by: default avatarMichael Schmitz <schmitzmic@gmail.com>
Tested-by: default avatarOndrej Zary <linux@rainbow-software.org>
Reviewed-by: default avatarHannes Reinecke <hare@suse.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent c4ec6f92
...@@ -488,6 +488,8 @@ static int NCR5380_init(struct Scsi_Host *instance, int flags) ...@@ -488,6 +488,8 @@ static int NCR5380_init(struct Scsi_Host *instance, int flags)
int i; int i;
unsigned long deadline; unsigned long deadline;
instance->max_lun = 7;
hostdata->host = instance; hostdata->host = instance;
hostdata->id_mask = 1 << instance->this_id; hostdata->id_mask = 1 << instance->this_id;
hostdata->id_higher_mask = 0; hostdata->id_higher_mask = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment