提交 ae5e33af 编写于 作者: F Finn Thain 提交者: 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: NFinn Thain <fthain@telegraphics.com.au>
Tested-by: NMichael Schmitz <schmitzmic@gmail.com>
Tested-by: NOndrej Zary <linux@rainbow-software.org>
Reviewed-by: NHannes Reinecke <hare@suse.com>
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册