summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/scsi.c4
-rw-r--r--drivers/scsi/scsi_devinfo.c1
-rw-r--r--drivers/scsi/scsi_scan.c6
-rw-r--r--include/scsi/scsi_devinfo.h2
4 files changed, 11 insertions, 2 deletions
diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c
index 33318f5ebb4b..df3306019a7e 100644
--- a/drivers/scsi/scsi.c
+++ b/drivers/scsi/scsi.c
@@ -365,8 +365,8 @@ scsi_alloc_host_cmd_pool(struct Scsi_Host *shost)
365 if (!pool) 365 if (!pool)
366 return NULL; 366 return NULL;
367 367
368 pool->cmd_name = kasprintf(GFP_KERNEL, "%s_cmd", hostt->name); 368 pool->cmd_name = kasprintf(GFP_KERNEL, "%s_cmd", hostt->proc_name);
369 pool->sense_name = kasprintf(GFP_KERNEL, "%s_sense", hostt->name); 369 pool->sense_name = kasprintf(GFP_KERNEL, "%s_sense", hostt->proc_name);
370 if (!pool->cmd_name || !pool->sense_name) { 370 if (!pool->cmd_name || !pool->sense_name) {
371 scsi_free_host_cmd_pool(pool); 371 scsi_free_host_cmd_pool(pool);
372 return NULL; 372 return NULL;
diff --git a/drivers/scsi/scsi_devinfo.c b/drivers/scsi/scsi_devinfo.c
index f969aca0b54e..49014a143c6a 100644
--- a/drivers/scsi/scsi_devinfo.c
+++ b/drivers/scsi/scsi_devinfo.c
@@ -222,6 +222,7 @@ static struct {
222 {"PIONEER", "CD-ROM DRM-602X", NULL, BLIST_FORCELUN | BLIST_SINGLELUN}, 222 {"PIONEER", "CD-ROM DRM-602X", NULL, BLIST_FORCELUN | BLIST_SINGLELUN},
223 {"PIONEER", "CD-ROM DRM-604X", NULL, BLIST_FORCELUN | BLIST_SINGLELUN}, 223 {"PIONEER", "CD-ROM DRM-604X", NULL, BLIST_FORCELUN | BLIST_SINGLELUN},
224 {"PIONEER", "CD-ROM DRM-624X", NULL, BLIST_FORCELUN | BLIST_SINGLELUN}, 224 {"PIONEER", "CD-ROM DRM-624X", NULL, BLIST_FORCELUN | BLIST_SINGLELUN},
225 {"Promise", "VTrak E610f", NULL, BLIST_SPARSELUN | BLIST_NO_RSOC},
225 {"Promise", "", NULL, BLIST_SPARSELUN}, 226 {"Promise", "", NULL, BLIST_SPARSELUN},
226 {"QUANTUM", "XP34301", "1071", BLIST_NOTQ}, 227 {"QUANTUM", "XP34301", "1071", BLIST_NOTQ},
227 {"REGAL", "CDC-4X", NULL, BLIST_MAX5LUN | BLIST_SINGLELUN}, 228 {"REGAL", "CDC-4X", NULL, BLIST_MAX5LUN | BLIST_SINGLELUN},
diff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c
index 50536cd6b3f2..56675dbbf681 100644
--- a/drivers/scsi/scsi_scan.c
+++ b/drivers/scsi/scsi_scan.c
@@ -900,6 +900,12 @@ static int scsi_add_lun(struct scsi_device *sdev, unsigned char *inq_result,
900 if (*bflags & BLIST_USE_10_BYTE_MS) 900 if (*bflags & BLIST_USE_10_BYTE_MS)
901 sdev->use_10_for_ms = 1; 901 sdev->use_10_for_ms = 1;
902 902
903 /* some devices don't like REPORT SUPPORTED OPERATION CODES
904 * and will simply timeout causing sd_mod init to take a very
905 * very long time */
906 if (*bflags & BLIST_NO_RSOC)
907 sdev->no_report_opcodes = 1;
908
903 /* set the device running here so that slave configure 909 /* set the device running here so that slave configure
904 * may do I/O */ 910 * may do I/O */
905 ret = scsi_device_set_state(sdev, SDEV_RUNNING); 911 ret = scsi_device_set_state(sdev, SDEV_RUNNING);
diff --git a/include/scsi/scsi_devinfo.h b/include/scsi/scsi_devinfo.h
index 1fdd6fc5492b..183eaab7c380 100644
--- a/include/scsi/scsi_devinfo.h
+++ b/include/scsi/scsi_devinfo.h
@@ -35,4 +35,6 @@
35#define BLIST_SCSI3LUN 0x8000000 /* Scan more than 256 LUNs 35#define BLIST_SCSI3LUN 0x8000000 /* Scan more than 256 LUNs
36 for sequential scan */ 36 for sequential scan */
37#define BLIST_TRY_VPD_PAGES 0x10000000 /* Attempt to read VPD pages */ 37#define BLIST_TRY_VPD_PAGES 0x10000000 /* Attempt to read VPD pages */
38#define BLIST_NO_RSOC 0x20000000 /* don't try to issue RSOC */
39
38#endif 40#endif