Skip to content

Commit

Permalink
aspeed/i2c: Fix DMA address mask
Browse files Browse the repository at this point in the history
The RAM memory region is now used for DMAs accesses instead of the
memory address space region. Mask off the top bits of the DMA address
to reflect this change.

Cc: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20210407171637.777743-4-clg@kaod.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
  • Loading branch information
legoater committed Apr 30, 2021
1 parent a43b2a1 commit ed063dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/i2c/aspeed_i2c.c
Expand Up @@ -601,7 +601,7 @@ static void aspeed_i2c_bus_write(void *opaque, hwaddr offset,
break;
}

bus->dma_addr = value & 0xfffffffc;
bus->dma_addr = value & 0x3ffffffc;
break;

case I2CD_DMA_LEN:
Expand Down

0 comments on commit ed063dd

Please sign in to comment.