[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1531131893.5779.13.camel@Centos6.3-64>
Date: Mon, 09 Jul 2018 18:24:53 +0800
From: Ching Huang <ching2048@...ca.com.tw>
To: martin.petersen@...cle.com, James.Bottomley@...senPartnership.com,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: dan.carpenter@...cle.com, hch@...radead.org,
colin.king@...onical.com
Subject: [PATCH 1/2] scsi: arcmsr: Fix error of resuming from hibernation
for adapter type E
>From Ching Huang <ching2048@...ca.com.tw>
Fix error of resuming from hibernation for adapter type E.
Signed-off-by: Ching Huang <ching2048@...ca.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)
Powered by blists - more mailing lists