[<prev] [next>] [day] [month] [year] [list]
Message-ID: <81c1f98819dfdfa18ae4d3b854b7733af9d34ea5.camel@areca.com.tw>
Date: Thu, 23 Mar 2023 01:13:20 +0800
From: ching Huang <ching2048@...ca.com.tw>
To: martin.petersen@...cle.com, James.Bottomley@...senPartnership.com,
linux-scsi@...r.kernel.org,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: [PATCH 2/5] scsi: arcmsr: fixed ADAPTER_TYPE_B 64bits dma
compatibility issue
From: ching Huang <ching2048@...ca.com.tw>
This patch fixed ADAPTER_TYPE_B 64bits dma compatibility issue
on some mother board.
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 e8c12dd..d387a38 100644
--- a/drivers/scsi/arcmsr/arcmsr_hba.c
+++ b/drivers/scsi/arcmsr/arcmsr_hba.c
@@ -996,6 +996,8 @@ static int arcmsr_set_dma_mask(struct AdapterControlBlock *acb)
if (((acb->adapter_type == ACB_ADAPTER_TYPE_A) && !dma_mask_64) ||
dma_set_mask(&pcidev->dev, DMA_BIT_MASK(64)))
goto dma32;
+ if (acb->adapter_type <= ACB_ADAPTER_TYPE_B)
+ return 0;
if (dma_set_coherent_mask(&pcidev->dev, DMA_BIT_MASK(64)) ||
dma_set_mask_and_coherent(&pcidev->dev, DMA_BIT_MASK(64))) {
printk("arcmsr: set DMA 64 mask failed\n");
Powered by blists - more mailing lists