Skip to content

Commit 402e0b8

Browse files
Christoph Hellwigaxboe
authored andcommitted
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 <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 952835e commit 402e0b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/block/n64cart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ static bool n64cart_do_bvec(struct device *dev, struct bio_vec *bv, u32 pos)
7474

7575
n64cart_wait_dma();
7676

77-
n64cart_write_reg(PI_DRAM_REG, dma_addr + bv->bv_offset);
77+
n64cart_write_reg(PI_DRAM_REG, dma_addr);
7878
n64cart_write_reg(PI_CART_REG, (bstart | CART_DOMAIN) & CART_MAX);
7979
n64cart_write_reg(PI_WRITE_REG, bv->bv_len - 1);
8080

0 commit comments

Comments
 (0)