diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-01-22 13:35:34 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-01-22 13:35:34 -0500 |
commit | 365bbe0d0caaf2ba74d56556827babf0bc66965d (patch) | |
tree | 1b5bce452bc768398b19967a3123bd8c4adcb9f1 /drivers/message/fusion/mptscsih.c | |
parent | 0bf98542a07ee1341830dcc4be63df85645f76b9 (diff) | |
parent | 3ef49a3b45c33b055002402f01e5da98cb773086 (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6: (30 commits)
[SCSI] qla1280: set residual correctly
[SCSI] fusion: bump version
[SCSI] fusion: MODULE_VERSION support
[SCSI] fusion: power pc and miscellaneous bug fixs
[SCSI] fusion: fibre channel: return DID_ERROR for MPI_IOCSTATUS_SCSI_IOC_TERMINATED
[SCSI] megaraid_sas: Update module author
[SCSI] 3ware 8000 serialize reset code
[SCSI] sr: fix error code check in sr_block_ioctl()
[SCSI] scsi: lpfc error path fix
[SCSI] aacraid: Product List Update
[SCSI] libiscsi: fix senselen calculation
[SCSI] iscsi: simplify IPv6 and IPv4 address printing
[SCSI] iscsi: newline in printk
[SCSI] iscsi: fix crypto_alloc_hash() error check
[SCSI] iscsi: fix 2.6.19 data digest calculation bug
[SCSI] scsi_scan: fix report lun problems with CDROM or RBC devices
[SCSI] qla2xxx: Update version number to 8.01.07-k4.
[SCSI] qla2xxx: Use generic isp_ops.fw_dump() function.
[SCSI] qla2xxx: Perform a fw-dump when an ISP23xx RISC-paused state is detected.
[SCSI] qla2xxx: Correct reset handling logic.
...
Diffstat (limited to 'drivers/message/fusion/mptscsih.c')
-rw-r--r-- | drivers/message/fusion/mptscsih.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/drivers/message/fusion/mptscsih.c b/drivers/message/fusion/mptscsih.c index 2c72c36b81..f0cca3ea93 100644 --- a/drivers/message/fusion/mptscsih.c +++ b/drivers/message/fusion/mptscsih.c | |||
@@ -3,7 +3,7 @@ | |||
3 | * For use with LSI Logic PCI chip/adapter(s) | 3 | * For use with LSI Logic PCI chip/adapter(s) |
4 | * running LSI Logic Fusion MPT (Message Passing Technology) firmware. | 4 | * running LSI Logic Fusion MPT (Message Passing Technology) firmware. |
5 | * | 5 | * |
6 | * Copyright (c) 1999-2005 LSI Logic Corporation | 6 | * Copyright (c) 1999-2007 LSI Logic Corporation |
7 | * (mailto:mpt_linux_developer@lsil.com) | 7 | * (mailto:mpt_linux_developer@lsil.com) |
8 | * | 8 | * |
9 | */ | 9 | */ |
@@ -76,6 +76,7 @@ | |||
76 | MODULE_AUTHOR(MODULEAUTHOR); | 76 | MODULE_AUTHOR(MODULEAUTHOR); |
77 | MODULE_DESCRIPTION(my_NAME); | 77 | MODULE_DESCRIPTION(my_NAME); |
78 | MODULE_LICENSE("GPL"); | 78 | MODULE_LICENSE("GPL"); |
79 | MODULE_VERSION(my_VERSION); | ||
79 | 80 | ||
80 | /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ | 81 | /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ |
81 | 82 | ||
@@ -701,6 +702,17 @@ mptscsih_io_done(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *mr) | |||
701 | break; | 702 | break; |
702 | } | 703 | } |
703 | } | 704 | } |
705 | } else if (ioc->bus_type == FC) { | ||
706 | /* | ||
707 | * The FC IOC may kill a request for variety of | ||
708 | * reasons, some of which may be recovered by a | ||
709 | * retry, some which are unlikely to be | ||
710 | * recovered. Return DID_ERROR instead of | ||
711 | * DID_RESET to permit retry of the command, | ||
712 | * just not an infinite number of them | ||
713 | */ | ||
714 | sc->result = DID_ERROR << 16; | ||
715 | break; | ||
704 | } | 716 | } |
705 | 717 | ||
706 | /* | 718 | /* |
@@ -2688,7 +2700,8 @@ mptscsih_initTarget(MPT_SCSI_HOST *hd, VirtTarget *vtarget, | |||
2688 | struct scsi_device *sdev) | 2700 | struct scsi_device *sdev) |
2689 | { | 2701 | { |
2690 | dinitprintk((MYIOC_s_INFO_FMT "initTarget bus=%d id=%d lun=%d hd=%p\n", | 2702 | dinitprintk((MYIOC_s_INFO_FMT "initTarget bus=%d id=%d lun=%d hd=%p\n", |
2691 | hd->ioc->name, vtarget->bus_id, vtarget->target_id, lun, hd)); | 2703 | hd->ioc->name, vtarget->bus_id, vtarget->target_id, |
2704 | sdev->lun, hd)); | ||
2692 | 2705 | ||
2693 | /* Is LUN supported? If so, upper 2 bits will be 0 | 2706 | /* Is LUN supported? If so, upper 2 bits will be 0 |
2694 | * in first byte of inquiry data. | 2707 | * in first byte of inquiry data. |
@@ -2770,7 +2783,7 @@ mptscsih_setTargetNegoParms(MPT_SCSI_HOST *hd, VirtTarget *target, | |||
2770 | else { | 2783 | else { |
2771 | factor = MPT_ULTRA320; | 2784 | factor = MPT_ULTRA320; |
2772 | if (scsi_device_qas(sdev)) { | 2785 | if (scsi_device_qas(sdev)) { |
2773 | ddvtprintk((KERN_INFO "Enabling QAS due to byte56=%02x on id=%d!\n", byte56, id)); | 2786 | ddvtprintk((KERN_INFO "Enabling QAS due to byte56=%02x on id=%d!\n", scsi_device_qas(sdev), id)); |
2774 | noQas = 0; | 2787 | noQas = 0; |
2775 | } | 2788 | } |
2776 | if (sdev->type == TYPE_TAPE && | 2789 | if (sdev->type == TYPE_TAPE && |