linux/drivers/dma/dw-edma
Serge Semin 6bce9ec9e0 dmaengine: dw-edma: Fix readq_ch() return value truncation
[ Upstream commit 5fdca4a995 ]

Previously, readq_ch() did a 64-bit readq(), but truncated the result by
storing it in the u32 "value".  Change "value" to u64 to avoid the
truncation.

Note: the method is currently unused, so the bug hasn't caused any problem
so far.

Fixes: 04e0a39fc1 ("dmaengine: dw-edma: Add writeq() and readq() for 64 bits architectures")
Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-10 09:33:38 +01:00
..
dw-edma-core.c dmaengine: dw-edma: Fix missing src/dst address of interleaved xfers 2023-03-10 09:33:34 +01:00
dw-edma-core.h
dw-edma-pcie.c dmaengine: dw-edma: Rename wr(rd)_ch_cnt to ll_wr(rd)_cnt in struct dw_edma_chip 2022-06-23 14:56:34 -05:00
dw-edma-v0-core.c dmaengine: dw-edma: Fix readq_ch() return value truncation 2023-03-10 09:33:38 +01:00
dw-edma-v0-core.h
dw-edma-v0-debugfs.c dmaengine: dw-edma: Change rg_region to reg_base in struct dw_edma_chip 2022-06-23 14:56:34 -05:00
dw-edma-v0-debugfs.h
dw-edma-v0-regs.h
Kconfig
Makefile