aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2014-02-11 11:06:33 -0500
committerJames Bottomley <JBottomley@Parallels.com>2014-03-15 13:19:19 -0400
commite2c70425f05219b142b3a8a9489a622c736db39d (patch)
treeba79903e9c3eede582bf72502f646eb2cd1dbf16
parentee60b2c52ec8ecdcbcd2f85cc117b525f649441f (diff)
[SCSI] arcmsr: upper 32 of dma address lost
The original code always set the upper 32 bits to zero because it was doing a shift of the wrong variable. Fixes: 1a4f550a09f8 ('[SCSI] arcmsr: 1.20.00.15: add SATA RAID plus other fixes') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
-rw-r--r--drivers/scsi/arcmsr/arcmsr_hba.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/scsi/arcmsr/arcmsr_hba.c b/drivers/scsi/arcmsr/arcmsr_hba.c
index 4f6a30b8e5f9..652b41b4ddbd 100644
--- a/drivers/scsi/arcmsr/arcmsr_hba.c
+++ b/drivers/scsi/arcmsr/arcmsr_hba.c
@@ -2500,16 +2500,15 @@ static int arcmsr_polling_ccbdone(struct AdapterControlBlock *acb,
2500static int arcmsr_iop_confirm(struct AdapterControlBlock *acb) 2500static int arcmsr_iop_confirm(struct AdapterControlBlock *acb)
2501{ 2501{
2502 uint32_t cdb_phyaddr, cdb_phyaddr_hi32; 2502 uint32_t cdb_phyaddr, cdb_phyaddr_hi32;
2503 dma_addr_t dma_coherent_handle; 2503
2504 /* 2504 /*
2505 ******************************************************************** 2505 ********************************************************************
2506 ** here we need to tell iop 331 our freeccb.HighPart 2506 ** here we need to tell iop 331 our freeccb.HighPart
2507 ** if freeccb.HighPart is not zero 2507 ** if freeccb.HighPart is not zero
2508 ******************************************************************** 2508 ********************************************************************
2509 */ 2509 */
2510 dma_coherent_handle = acb->dma_coherent_handle; 2510 cdb_phyaddr = lower_32_bits(acb->dma_coherent_handle);
2511 cdb_phyaddr = (uint32_t)(dma_coherent_handle); 2511 cdb_phyaddr_hi32 = upper_32_bits(acb->dma_coherent_handle);
2512 cdb_phyaddr_hi32 = (uint32_t)((cdb_phyaddr >> 16) >> 16);
2513 acb->cdb_phyaddr_hi32 = cdb_phyaddr_hi32; 2512 acb->cdb_phyaddr_hi32 = cdb_phyaddr_hi32;
2514 /* 2513 /*
2515 *********************************************************************** 2514 ***********************************************************************