diff options
author | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-04-14 16:47:45 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-04-14 16:47:45 -0400 |
commit | 84d891d6727c17832c79ec96d3d107a87d857978 (patch) | |
tree | a189a4d00c1387e409e2f9808c72c8088728c33b /drivers/scsi/scsi_scan.c | |
parent | 5bb0b55a3283369f1cd8ac76a6d8bda8e7a77055 (diff) | |
parent | 7676f83aeb774e7a3abe6af06ec92b29488b5b79 (diff) |
Merge ../scsi-rc-fixes-2.6
Conflicts:
include/scsi/scsi_devinfo.h
Same number for two BLIST flags: BLIST_MAX_512 and BLIST_ATTACH_PQ3
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/scsi_scan.c')
-rw-r--r-- | drivers/scsi/scsi_scan.c | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c index 7d31a4b0f802..5c7e51f9efed 100644 --- a/drivers/scsi/scsi_scan.c +++ b/drivers/scsi/scsi_scan.c | |||
@@ -673,6 +673,7 @@ static int scsi_add_lun(struct scsi_device *sdev, char *inq_result, int *bflags) | |||
673 | case TYPE_MEDIUM_CHANGER: | 673 | case TYPE_MEDIUM_CHANGER: |
674 | case TYPE_ENCLOSURE: | 674 | case TYPE_ENCLOSURE: |
675 | case TYPE_COMM: | 675 | case TYPE_COMM: |
676 | case TYPE_RAID: | ||
676 | case TYPE_RBC: | 677 | case TYPE_RBC: |
677 | sdev->writeable = 1; | 678 | sdev->writeable = 1; |
678 | break; | 679 | break; |
@@ -738,6 +739,13 @@ static int scsi_add_lun(struct scsi_device *sdev, char *inq_result, int *bflags) | |||
738 | sdev->select_no_atn = 1; | 739 | sdev->select_no_atn = 1; |
739 | 740 | ||
740 | /* | 741 | /* |
742 | * Maximum 512 sector transfer length | ||
743 | * broken RA4x00 Compaq Disk Array | ||
744 | */ | ||
745 | if (*bflags & BLIST_MAX_512) | ||
746 | blk_queue_max_sectors(sdev->request_queue, 512); | ||
747 | |||
748 | /* | ||
741 | * Some devices may not want to have a start command automatically | 749 | * Some devices may not want to have a start command automatically |
742 | * issued when a device is added. | 750 | * issued when a device is added. |
743 | */ | 751 | */ |
@@ -1146,10 +1154,13 @@ static int scsi_report_lun_scan(struct scsi_target *starget, int bflags, | |||
1146 | * Also allow SCSI-2 if BLIST_REPORTLUN2 is set and host adapter does | 1154 | * Also allow SCSI-2 if BLIST_REPORTLUN2 is set and host adapter does |
1147 | * support more than 8 LUNs. | 1155 | * support more than 8 LUNs. |
1148 | */ | 1156 | */ |
1149 | if ((bflags & BLIST_NOREPORTLUN) || | 1157 | if (bflags & BLIST_NOREPORTLUN) |
1150 | starget->scsi_level < SCSI_2 || | 1158 | return 1; |
1151 | (starget->scsi_level < SCSI_3 && | 1159 | if (starget->scsi_level < SCSI_2 && |
1152 | (!(bflags & BLIST_REPORTLUN2) || shost->max_lun <= 8)) ) | 1160 | starget->scsi_level != SCSI_UNKNOWN) |
1161 | return 1; | ||
1162 | if (starget->scsi_level < SCSI_3 && | ||
1163 | (!(bflags & BLIST_REPORTLUN2) || shost->max_lun <= 8)) | ||
1153 | return 1; | 1164 | return 1; |
1154 | if (bflags & BLIST_NOLUN) | 1165 | if (bflags & BLIST_NOLUN) |
1155 | return 0; | 1166 | return 0; |