aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_def.h
diff options
context:
space:
mode:
authorHimanshu Madhani <himanshu.madhani@qlogic.com>2014-09-25 05:16:55 -0400
committerChristoph Hellwig <hch@lst.de>2014-09-25 08:25:04 -0400
commit2d5a4c344ad35eaaab59a5079eb6c62a843fb9d6 (patch)
tree6041dfa969231bf11cf53c51ea8ea1bce3dcf031 /drivers/scsi/qla2xxx/qla_def.h
parent25232cc9b8eca0406f51e61e944e854ed021a9d7 (diff)
qla2xxx: Disable laser for ISP2031 while unloading driver.
Nameserver data on FC switch is not refreshed when qla2xxx driver is unloaded. Disabling laser for ISP2031 will force FC switch to rescan ports and clear fdmi entries from Nameserver. Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com> Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_def.h')
-rw-r--r--drivers/scsi/qla2xxx/qla_def.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h
index c29f4653db18..d9daad7db6ce 100644
--- a/drivers/scsi/qla2xxx/qla_def.h
+++ b/drivers/scsi/qla2xxx/qla_def.h
@@ -191,6 +191,11 @@
191 * reset-recovery completion is 191 * reset-recovery completion is
192 * second 192 * second
193 */ 193 */
194/* ISP2031: Values for laser on/off */
195#define PORT_0_2031 0x00201340
196#define PORT_1_2031 0x00201350
197#define LASER_ON_2031 0x01800100
198#define LASER_OFF_2031 0x01800180
194 199
195/* 200/*
196 * The ISP2312 v2 chip cannot access the FLASH/GPIO registers via MMIO in an 201 * The ISP2312 v2 chip cannot access the FLASH/GPIO registers via MMIO in an