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)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 10 Feb 2023 23:15:23 +0000 (17:15 -0600)
commit5fdca4a995bcd4cf61bda40af154a730589dc524
tree1cdd81ede7030a71efca605ede9ae94b71972f4f
parent6cb6e9c6050ac32c33466899b6488d5b6dd1d8e8
dmaengine: dw-edma: Fix readq_ch() return value truncation

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>
drivers/dma/dw-edma/dw-edma-v0-core.c