dmaengine: dw-edma: Fix readq_ch() return value truncation
authorSerge Semin <Sergey.Semin@baikalelectronics.ru>
Wed, 25 Jan 2023 15:19:00 +0000 (18:19 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:39:42 +0000 (09:39 +0100)
commit295ab6d49ee5aeef7f6ed915de86dae114e650a4
treeda6c29ed84abfe86afcefa063f7edcc2860fe13a
parent3d41d9b256ae626c0dc434427c8e32450358d3b4
dmaengine: dw-edma: Fix readq_ch() return value truncation

[ Upstream commit 5fdca4a995bcd4cf61bda40af154a730589dc524 ]

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: 04e0a39fc10f ("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>
drivers/dma/dw-edma/dw-edma-v0-core.c