]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: qla2xxx: Use chip reset to bring down laser on unload.
authorQuinn Tran <quinn.tran@cavium.com>
Thu, 28 Dec 2017 20:33:11 +0000 (12:33 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 4 Jan 2018 04:41:05 +0000 (23:41 -0500)
commit8c74d2ee86eeefa7a46a684898ea045e9e68ecbc
treec0eabab0eb9ba4c622e3147aa1e082b116e42760
parent2aec09039311eda353e8c503dfe54f405d45a1c9
scsi: qla2xxx: Use chip reset to bring down laser on unload.

Current code uses Stop Firmware MB cmd to stop the chip before
driver unload.  This will leave the laser in its current state.
This give the illusion of this adapter is still alive.
For 8G & newer adapters, use chip reset to stop the chip and
bring down the laser.

Signed-off-by: Quinn Tran <quinn.tran@cavium.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_os.c