diff options
| -rw-r--r-- | drivers/scsi/dpt/dptsig.h | 3 | ||||
| -rw-r--r-- | drivers/scsi/hosts.c | 9 | ||||
| -rw-r--r-- | drivers/scsi/sr.c | 3 |
3 files changed, 12 insertions, 3 deletions
diff --git a/drivers/scsi/dpt/dptsig.h b/drivers/scsi/dpt/dptsig.h index 72c8992fdf21..a6644b332b53 100644 --- a/drivers/scsi/dpt/dptsig.h +++ b/drivers/scsi/dpt/dptsig.h | |||
| @@ -85,7 +85,7 @@ typedef unsigned int sigINT; | |||
| 85 | /* ------------------------------------------------------------------ */ | 85 | /* ------------------------------------------------------------------ */ |
| 86 | /* What type of processor the file is meant to run on. */ | 86 | /* What type of processor the file is meant to run on. */ |
| 87 | /* This will let us know whether to read sigWORDs as high/low or low/high. */ | 87 | /* This will let us know whether to read sigWORDs as high/low or low/high. */ |
| 88 | #define PROC_INTEL 0x00 /* Intel 80x86 */ | 88 | #define PROC_INTEL 0x00 /* Intel 80x86/ia64 */ |
| 89 | #define PROC_MOTOROLA 0x01 /* Motorola 68K */ | 89 | #define PROC_MOTOROLA 0x01 /* Motorola 68K */ |
| 90 | #define PROC_MIPS4000 0x02 /* MIPS RISC 4000 */ | 90 | #define PROC_MIPS4000 0x02 /* MIPS RISC 4000 */ |
| 91 | #define PROC_ALPHA 0x03 /* DEC Alpha */ | 91 | #define PROC_ALPHA 0x03 /* DEC Alpha */ |
| @@ -104,6 +104,7 @@ typedef unsigned int sigINT; | |||
| 104 | #define PROC_486 0x08 /* Intel 80486 */ | 104 | #define PROC_486 0x08 /* Intel 80486 */ |
| 105 | #define PROC_PENTIUM 0x10 /* Intel 586 aka P5 aka Pentium */ | 105 | #define PROC_PENTIUM 0x10 /* Intel 586 aka P5 aka Pentium */ |
| 106 | #define PROC_SEXIUM 0x20 /* Intel 686 aka P6 aka Pentium Pro or MMX */ | 106 | #define PROC_SEXIUM 0x20 /* Intel 686 aka P6 aka Pentium Pro or MMX */ |
| 107 | #define PROC_IA64 0x40 /* Intel IA64 processor */ | ||
| 107 | 108 | ||
| 108 | /* PROC_i960: */ | 109 | /* PROC_i960: */ |
| 109 | #define PROC_960RX 0x01 /* Intel 80960RC/RD */ | 110 | #define PROC_960RX 0x01 /* Intel 80960RC/RD */ |
diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c index 3690360d7a79..c6457bfc8a49 100644 --- a/drivers/scsi/hosts.c +++ b/drivers/scsi/hosts.c | |||
| @@ -456,6 +456,10 @@ static int __scsi_host_match(struct device *dev, void *data) | |||
| 456 | * | 456 | * |
| 457 | * Return value: | 457 | * Return value: |
| 458 | * A pointer to located Scsi_Host or NULL. | 458 | * A pointer to located Scsi_Host or NULL. |
| 459 | * | ||
| 460 | * The caller must do a scsi_host_put() to drop the reference | ||
| 461 | * that scsi_host_get() took. The put_device() below dropped | ||
| 462 | * the reference from class_find_device(). | ||
| 459 | **/ | 463 | **/ |
| 460 | struct Scsi_Host *scsi_host_lookup(unsigned short hostnum) | 464 | struct Scsi_Host *scsi_host_lookup(unsigned short hostnum) |
| 461 | { | 465 | { |
| @@ -463,9 +467,10 @@ struct Scsi_Host *scsi_host_lookup(unsigned short hostnum) | |||
| 463 | struct Scsi_Host *shost = ERR_PTR(-ENXIO); | 467 | struct Scsi_Host *shost = ERR_PTR(-ENXIO); |
| 464 | 468 | ||
| 465 | cdev = class_find_device(&shost_class, &hostnum, __scsi_host_match); | 469 | cdev = class_find_device(&shost_class, &hostnum, __scsi_host_match); |
| 466 | if (cdev) | 470 | if (cdev) { |
| 467 | shost = scsi_host_get(class_to_shost(cdev)); | 471 | shost = scsi_host_get(class_to_shost(cdev)); |
| 468 | 472 | put_device(cdev); | |
| 473 | } | ||
| 469 | return shost; | 474 | return shost; |
| 470 | } | 475 | } |
| 471 | EXPORT_SYMBOL(scsi_host_lookup); | 476 | EXPORT_SYMBOL(scsi_host_lookup); |
diff --git a/drivers/scsi/sr.c b/drivers/scsi/sr.c index 7ee86d4a7618..c82df8bd4d89 100644 --- a/drivers/scsi/sr.c +++ b/drivers/scsi/sr.c | |||
| @@ -178,6 +178,9 @@ int sr_test_unit_ready(struct scsi_device *sdev, struct scsi_sense_hdr *sshdr) | |||
| 178 | the_result = scsi_execute_req(sdev, cmd, DMA_NONE, NULL, | 178 | the_result = scsi_execute_req(sdev, cmd, DMA_NONE, NULL, |
| 179 | 0, sshdr, SR_TIMEOUT, | 179 | 0, sshdr, SR_TIMEOUT, |
| 180 | retries--); | 180 | retries--); |
| 181 | if (scsi_sense_valid(sshdr) && | ||
| 182 | sshdr->sense_key == UNIT_ATTENTION) | ||
| 183 | sdev->changed = 1; | ||
| 181 | 184 | ||
| 182 | } while (retries > 0 && | 185 | } while (retries > 0 && |
| 183 | (!scsi_status_is_good(the_result) || | 186 | (!scsi_status_is_good(the_result) || |
