]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit3407fc373d8ad794e94fc50b9c085f7451b502f8
treec0eabab0eb9ba4c622e3147aa1e082b116e42760
parent2853192e154b813fe34a6cbee5e34dfef50d29d0
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