Skip to contentSkip to conversation

scsi: arcmsr: Fix error of resuming from hibernation for adapter type E

PATCH Applied Ching Huang 1 participant 1 message Jul 9, 2018 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 scsi: arcmsr: Fix error of resuming from hibernation for adapter type E

Quoted 1 line

From Ching Huang <[email protected]>

Fix error of resuming from hibernation for adapter type E.

---

drivers/scsi/arcmsr/arcmsr_hba.c +7 -0
index 732b5d9..12316ef 100755
@@ -1061,6 +1061,13 @@ static int arcmsr_resume(struct pci_dev *pdev)
 	pci_set_master(pdev);
 	if (arcmsr_request_irq(pdev, acb) == FAILED)
 		goto controller_stop;
+	if (acb->adapter_type == ACB_ADAPTER_TYPE_E) {
+		writel(0, &acb->pmuE->host_int_status);
+		writel(ARCMSR_HBEMU_DOORBELL_SYNC, &acb->pmuE->iobound_doorbell);
+		acb->in_doorbell = 0;
+		acb->out_doorbell = 0;
+		acb->doneq_index = 0;
+	}
 	arcmsr_iop_init(acb);
 	arcmsr_init_get_devmap_timer(acb);
 	if (set_date_time)