Blame SOURCES/0001-scsi-arcmsr-Fix-error-of-resuming-from-hibernation-f.patch
|
Kmods SIG |
8c3d00 |
From 97fe222524f8fdbcc528b44d160d1df71d96af86 Mon Sep 17 00:00:00 2001
|
|
Kmods SIG |
8c3d00 |
From: Ching Huang <ching2048@areca.com.tw>
|
|
Kmods SIG |
8c3d00 |
Date: Mon, 9 Jul 2018 18:24:53 +0800
|
|
Kmods SIG |
8c3d00 |
Subject: [Backport 97fe222524f8] scsi: arcmsr: Fix error of resuming from
|
|
Kmods SIG |
8c3d00 |
hibernation for adapter type E
|
|
Kmods SIG |
8c3d00 |
|
|
Kmods SIG |
8c3d00 |
Fix error of resuming from hibernation for adapter type E.
|
|
Kmods SIG |
8c3d00 |
|
|
Kmods SIG |
8c3d00 |
Signed-off-by: Ching Huang <ching2048@areca.com.tw>
|
|
Kmods SIG |
8c3d00 |
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
|
|
Kmods SIG |
8c3d00 |
---
|
|
Kmods SIG |
8c3d00 |
src/arcmsr_hba.c | 7 +++++++
|
|
Kmods SIG |
8c3d00 |
1 file changed, 7 insertions(+)
|
|
Kmods SIG |
8c3d00 |
|
|
Kmods SIG |
8c3d00 |
diff --git a/src/arcmsr_hba.c b/src/arcmsr_hba.c
|
|
Kmods SIG |
8c3d00 |
index 732b5d9242f16551b525b43023b4dcae8a94cc65..12316ef4c89318536f88e6b84f7f92d7d887d8f2 100644
|
|
Kmods SIG |
8c3d00 |
--- a/src/arcmsr_hba.c
|
|
Kmods SIG |
8c3d00 |
+++ b/src/arcmsr_hba.c
|
|
Kmods SIG |
8c3d00 |
@@ -1061,6 +1061,13 @@ static int arcmsr_resume(struct pci_dev *pdev)
|
|
Kmods SIG |
8c3d00 |
pci_set_master(pdev);
|
|
Kmods SIG |
8c3d00 |
if (arcmsr_request_irq(pdev, acb) == FAILED)
|
|
Kmods SIG |
8c3d00 |
goto controller_stop;
|
|
Kmods SIG |
8c3d00 |
+ if (acb->adapter_type == ACB_ADAPTER_TYPE_E) {
|
|
Kmods SIG |
8c3d00 |
+ writel(0, &acb->pmuE->host_int_status);
|
|
Kmods SIG |
8c3d00 |
+ writel(ARCMSR_HBEMU_DOORBELL_SYNC, &acb->pmuE->iobound_doorbell);
|
|
Kmods SIG |
8c3d00 |
+ acb->in_doorbell = 0;
|
|
Kmods SIG |
8c3d00 |
+ acb->out_doorbell = 0;
|
|
Kmods SIG |
8c3d00 |
+ acb->doneq_index = 0;
|
|
Kmods SIG |
8c3d00 |
+ }
|
|
Kmods SIG |
8c3d00 |
arcmsr_iop_init(acb);
|
|
Kmods SIG |
8c3d00 |
arcmsr_init_get_devmap_timer(acb);
|
|
Kmods SIG |
8c3d00 |
if (set_date_time)
|
|
Kmods SIG |
8c3d00 |
--
|
|
Kmods SIG |
8c3d00 |
2.31.1
|
|
Kmods SIG |
8c3d00 |
|