diff options
author | 2017-10-30 13:38:03 +0000 | |
---|---|---|
committer | 2017-11-02 11:39:44 +0100 | |
commit | e0b3f39092a1cff5548cbaf40096ec25e7721de6 (patch) | |
tree | d5120e155f2aeff759a717aae196848a9bc2957f /drivers/staging | |
parent | Merge tag 'iio-for-4.15c' of git://git.kernel.org/pub/scm/linux/kernel/git/ji... (diff) | |
download | linux-e0b3f39092a1cff5548cbaf40096ec25e7721de6.tar.gz linux-e0b3f39092a1cff5548cbaf40096ec25e7721de6.tar.bz2 linux-e0b3f39092a1cff5548cbaf40096ec25e7721de6.zip |
staging: ccree: fix 64 bit scatter/gather DMA ops
Fix a wrong offset used in splitting a 64 DMA address to MSB/LSB
parts needed for scatter/gather HW descriptors causing operations
relying on them to fail on 64 bit platforms.
Fixes: c6f7f2f4591f ("staging: ccree: refactor LLI access macros")
Reported-by: Stuart Yoder <stuart.yoder@arm.com>
Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/ccree/cc_lli_defs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/ccree/cc_lli_defs.h b/drivers/staging/ccree/cc_lli_defs.h index 851d3907167e..a9c417b07b04 100644 --- a/drivers/staging/ccree/cc_lli_defs.h +++ b/drivers/staging/ccree/cc_lli_defs.h @@ -59,7 +59,7 @@ static inline void cc_lli_set_addr(u32 *lli_p, dma_addr_t addr) lli_p[LLI_WORD0_OFFSET] = (addr & U32_MAX); #ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT lli_p[LLI_WORD1_OFFSET] &= ~LLI_HADDR_MASK; - lli_p[LLI_WORD1_OFFSET] |= FIELD_PREP(LLI_HADDR_MASK, (addr >> 16)); + lli_p[LLI_WORD1_OFFSET] |= FIELD_PREP(LLI_HADDR_MASK, (addr >> 32)); #endif /* CONFIG_ARCH_DMA_ADDR_T_64BIT */ } |