mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
[SCSI] qla4xxx: Clear the RISC interrupt bit during FW init
This patch fix kernel panic during kdump. Signed-off-by: Sarang Radke <[email protected]> Signed-off-by: Vikas Chaudhary <[email protected]> Reviewed-by: Mike Christie <[email protected]> Signed-off-by: James Bottomley <[email protected]>
This commit is contained in:
parent
527c8b2e96
commit
7876499932
2 changed files with 8 additions and 0 deletions
|
|
@ -697,6 +697,9 @@ int qla4xxx_start_firmware(struct scsi_qla_host *ha)
|
|||
writel(set_rmask(CSR_SCSI_PROCESSOR_INTR),
|
||||
&ha->reg->ctrl_status);
|
||||
readl(&ha->reg->ctrl_status);
|
||||
writel(set_rmask(CSR_SCSI_COMPLETION_INTR),
|
||||
&ha->reg->ctrl_status);
|
||||
readl(&ha->reg->ctrl_status);
|
||||
spin_unlock_irqrestore(&ha->hardware_lock, flags);
|
||||
if (qla4xxx_get_firmware_state(ha) == QLA_SUCCESS) {
|
||||
DEBUG2(printk("scsi%ld: %s: Get firmware "
|
||||
|
|
|
|||
|
|
@ -1875,6 +1875,11 @@ exit:
|
|||
int qla4_8xxx_load_risc(struct scsi_qla_host *ha)
|
||||
{
|
||||
int retval;
|
||||
|
||||
/* clear the interrupt */
|
||||
writel(0, &ha->qla4_8xxx_reg->host_int);
|
||||
readl(&ha->qla4_8xxx_reg->host_int);
|
||||
|
||||
retval = qla4_8xxx_device_state_handler(ha);
|
||||
|
||||
if (retval == QLA_SUCCESS && !test_bit(AF_INIT_DONE, &ha->flags))
|
||||
|
|
|
|||
Loading…
Reference in a new issue