]> www.infradead.org Git - users/jedix/linux-maple.git/commit
qla2xxx: Add acquiring of risc semaphore before doing ISP reset.
authorJoe Carnuccio <joe.carnuccio@qlogic.com>
Sat, 29 Sep 2012 01:28:24 +0000 (18:28 -0700)
committerJerry Snitselaar <jerry.snitselaar@oracle.com>
Thu, 29 Nov 2012 22:18:26 +0000 (15:18 -0700)
commit8a29234da26115e7836e4388d77ae78a7ba1e469
tree3e6d313fcb75cc33da43edd08b3b50791a4c2ef3
parentc4bd3b62c3a8153e3973cb1361863033a37bb6c9
qla2xxx: Add acquiring of risc semaphore before doing ISP reset.

Before performing ISP reset, attempt to acquire the RISC semaphore;
this attempts to avoid killing the I2C access state of the other PCI function.

Try to acquire the semaphore; if semaphore is hung then acquire it by force.

The ISP reset clears the semaphore, thereby implicitly releasing it.

JIRA Key: V2632FC-289

Acked-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Acked-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Acked-by; Chad Dupuis <chad.dupuis@qlogic.com>

Signed-off-by: Jerry Snitselaar <jerry.snitselaar@oracle.com>
drivers/scsi/qla2xxx/qla_fw.h
drivers/scsi/qla2xxx/qla_init.c