summaryrefslogtreecommitdiff
path: root/drivers/block/n64cart.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-08-04 12:49:58 +0300
committerJens Axboe <axboe@kernel.dk>2021-08-04 20:15:21 +0300
commit402e0b8cd00284a25c6eb8c0a43319bc8430b1c7 (patch)
tree1a712c964408da65fa18539594e14361779e7ed6 /drivers/block/n64cart.c
parent952835edb4fdad49361d5330da918be8b765b787 (diff)
downloadlinux-402e0b8cd00284a25c6eb8c0a43319bc8430b1c7.tar.xz
n64cart: fix the dma address in n64cart_do_bvec
dma_map_bvec already takes bv_offset into account. Fixes: 9b2a2bbbb4d0 ("block: Add n64 cart driver") Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/n64cart.c')
-rw-r--r--drivers/block/n64cart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/n64cart.c b/drivers/block/n64cart.c
index 7b4dd10af9ec..c84be0028f63 100644
--- a/drivers/block/n64cart.c
+++ b/drivers/block/n64cart.c
@@ -74,7 +74,7 @@ static bool n64cart_do_bvec(struct device *dev, struct bio_vec *bv, u32 pos)
n64cart_wait_dma();
- n64cart_write_reg(PI_DRAM_REG, dma_addr + bv->bv_offset);
+ n64cart_write_reg(PI_DRAM_REG, dma_addr);
n64cart_write_reg(PI_CART_REG, (bstart | CART_DOMAIN) & CART_MAX);
n64cart_write_reg(PI_WRITE_REG, bv->bv_len - 1);