aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/scsi/tmscsim.txt2
-rw-r--r--drivers/scsi/Kconfig14
-rw-r--r--drivers/scsi/dc395x.c9
-rw-r--r--drivers/scsi/ncr53c8xx.h4
-rw-r--r--drivers/scsi/scsi_scan.c4
-rw-r--r--drivers/usb/storage/Kconfig4
6 files changed, 2 insertions, 35 deletions
diff --git a/Documentation/scsi/tmscsim.txt b/Documentation/scsi/tmscsim.txt
index 3303d218b32e..0810132772a8 100644
--- a/Documentation/scsi/tmscsim.txt
+++ b/Documentation/scsi/tmscsim.txt
@@ -317,8 +317,6 @@ Each of the parameters is a number, containing the described information:
317 4 0x10 16 Immediate return on BIOS seek command. (Not used) 317 4 0x10 16 Immediate return on BIOS seek command. (Not used)
318 (*)5 0x20 32 Check for LUNs >= 1. 318 (*)5 0x20 32 Check for LUNs >= 1.
319 319
320 The default for LUN Check depends on CONFIG_SCSI_MULTI_LUN.
321
322* TaggedCmnds is a number indicating the maximum number of Tagged Commands. 320* TaggedCmnds is a number indicating the maximum number of Tagged Commands.
323 It is the binary logarithm - 1 of the actual number. Max is 4 (32). 321 It is the binary logarithm - 1 of the actual number. Max is 4 (32).
324 Value Number of Tagged Commands 322 Value Number of Tagged Commands
diff --git a/drivers/scsi/Kconfig b/drivers/scsi/Kconfig
index baca5897039f..cfc6f39ce978 100644
--- a/drivers/scsi/Kconfig
+++ b/drivers/scsi/Kconfig
@@ -197,20 +197,6 @@ config SCSI_ENCLOSURE
197 it has an enclosure device. Selecting this option will just allow 197 it has an enclosure device. Selecting this option will just allow
198 certain enclosure conditions to be reported and is not required. 198 certain enclosure conditions to be reported and is not required.
199 199
200config SCSI_MULTI_LUN
201 bool "Probe all LUNs on each SCSI device"
202 depends on SCSI
203 help
204 Some devices support more than one LUN (Logical Unit Number) in order
205 to allow access to several media, e.g. CD jukebox, USB card reader,
206 mobile phone in mass storage mode. This option forces the kernel to
207 probe for all LUNs by default. This setting can be overridden by
208 max_luns boot/module parameter. Note that this option does not affect
209 devices conforming to SCSI-3 or higher as they can explicitly report
210 their number of LUNs. It is safe to say Y here unless you have one of
211 those rare devices which reacts in an unexpected way when probed for
212 multiple LUNs.
213
214config SCSI_CONSTANTS 200config SCSI_CONSTANTS
215 bool "Verbose SCSI error reporting (kernel size +=12K)" 201 bool "Verbose SCSI error reporting (kernel size +=12K)"
216 depends on SCSI 202 depends on SCSI
diff --git a/drivers/scsi/dc395x.c b/drivers/scsi/dc395x.c
index 83d9bf6fa6ca..ad7bee069d08 100644
--- a/drivers/scsi/dc395x.c
+++ b/drivers/scsi/dc395x.c
@@ -519,9 +519,7 @@ static struct ParameterData cfg_data[] = {
519 CFG_PARAM_UNSET, 519 CFG_PARAM_UNSET,
520 0, 520 0,
521 0x2f, 521 0x2f,
522#ifdef CONFIG_SCSI_MULTI_LUN 522 NAC_SCANLUN |
523 NAC_SCANLUN |
524#endif
525 NAC_GT2DRIVES | NAC_GREATER_1G | NAC_POWERON_SCSI_RESET 523 NAC_GT2DRIVES | NAC_GREATER_1G | NAC_POWERON_SCSI_RESET
526 /*| NAC_ACTIVE_NEG*/, 524 /*| NAC_ACTIVE_NEG*/,
527 NAC_GT2DRIVES | NAC_GREATER_1G | NAC_POWERON_SCSI_RESET | 0x08 525 NAC_GT2DRIVES | NAC_GREATER_1G | NAC_POWERON_SCSI_RESET | 0x08
@@ -4434,15 +4432,10 @@ static void adapter_init_scsi_host(struct Scsi_Host *host)
4434 if (host->max_id - 1 == eeprom->scsi_id) 4432 if (host->max_id - 1 == eeprom->scsi_id)
4435 host->max_id--; 4433 host->max_id--;
4436 4434
4437#ifdef CONFIG_SCSI_MULTI_LUN
4438 if (eeprom->channel_cfg & NAC_SCANLUN) 4435 if (eeprom->channel_cfg & NAC_SCANLUN)
4439 host->max_lun = 8; 4436 host->max_lun = 8;
4440 else 4437 else
4441 host->max_lun = 1; 4438 host->max_lun = 1;
4442#else
4443 host->max_lun = 1;
4444#endif
4445
4446} 4439}
4447 4440
4448 4441
diff --git a/drivers/scsi/ncr53c8xx.h b/drivers/scsi/ncr53c8xx.h
index 0e008dacf679..02901c54b08b 100644
--- a/drivers/scsi/ncr53c8xx.h
+++ b/drivers/scsi/ncr53c8xx.h
@@ -264,11 +264,7 @@
264#define SCSI_NCR_SG_TABLESIZE (SCSI_NCR_MAX_SCATTER) 264#define SCSI_NCR_SG_TABLESIZE (SCSI_NCR_MAX_SCATTER)
265#define SCSI_NCR_TIMER_INTERVAL (HZ) 265#define SCSI_NCR_TIMER_INTERVAL (HZ)
266 266
267#if 1 /* defined CONFIG_SCSI_MULTI_LUN */
268#define SCSI_NCR_MAX_LUN (16) 267#define SCSI_NCR_MAX_LUN (16)
269#else
270#define SCSI_NCR_MAX_LUN (1)
271#endif
272 268
273/* 269/*
274 * IO functions definition for big/little endian CPU support. 270 * IO functions definition for big/little endian CPU support.
diff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c
index e02b3aab56ce..8564bdcd2287 100644
--- a/drivers/scsi/scsi_scan.c
+++ b/drivers/scsi/scsi_scan.c
@@ -81,11 +81,7 @@ static const char *scsi_null_device_strs = "nullnullnullnull";
81 81
82#define MAX_SCSI_LUNS 512 82#define MAX_SCSI_LUNS 512
83 83
84#ifdef CONFIG_SCSI_MULTI_LUN
85static unsigned int max_scsi_luns = MAX_SCSI_LUNS; 84static unsigned int max_scsi_luns = MAX_SCSI_LUNS;
86#else
87static unsigned int max_scsi_luns = 1;
88#endif
89 85
90module_param_named(max_luns, max_scsi_luns, uint, S_IRUGO|S_IWUSR); 86module_param_named(max_luns, max_scsi_luns, uint, S_IRUGO|S_IWUSR);
91MODULE_PARM_DESC(max_luns, 87MODULE_PARM_DESC(max_luns,
diff --git a/drivers/usb/storage/Kconfig b/drivers/usb/storage/Kconfig
index 13b5bfbaf951..83e7d77c6317 100644
--- a/drivers/usb/storage/Kconfig
+++ b/drivers/usb/storage/Kconfig
@@ -18,9 +18,7 @@ config USB_STORAGE
18 18
19 This option depends on 'SCSI' support being enabled, but you 19 This option depends on 'SCSI' support being enabled, but you
20 probably also need 'SCSI device support: SCSI disk support' 20 probably also need 'SCSI device support: SCSI disk support'
21 (BLK_DEV_SD) for most USB storage devices. Some devices also 21 (BLK_DEV_SD) for most USB storage devices.
22 will require 'Probe all LUNs on each SCSI device'
23 (SCSI_MULTI_LUN).
24 22
25 To compile this driver as a module, choose M here: the 23 To compile this driver as a module, choose M here: the
26 module will be called usb-storage. 24 module will be called usb-storage.