* [PATCH 1/2] scsi: arcmsr: Fix error of resuming from hibernation for adapter type E
@ 2018-07-09 10:24 Ching Huang
0 siblings, 0 replies; only message in thread
From: Ching Huang @ 2018-07-09 10:24 UTC (permalink / raw)
To: martin.petersen, James.Bottomley, linux-scsi, linux-kernel
Cc: dan.carpenter, hch, colin.king
>From Ching Huang <ching2048@areca.com.tw>
Fix error of resuming from hibernation for adapter type E.
Signed-off-by: Ching Huang <ching2048@areca.com.tw>
---
diff --git a/drivers/scsi/arcmsr/arcmsr_hba.c b/drivers/scsi/arcmsr/arcmsr_hba.c
index 732b5d9..12316ef 100755
--- a/drivers/scsi/arcmsr/arcmsr_hba.c
+++ b/drivers/scsi/arcmsr/arcmsr_hba.c
@@ -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)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-07-09 10:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-09 10:24 [PATCH 1/2] scsi: arcmsr: Fix error of resuming from hibernation for adapter type E Ching Huang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox