[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 03/18] aspeed/i2c: Fix DMA address mask
From: |
Cédric Le Goater |
Subject: |
[PULL 03/18] aspeed/i2c: Fix DMA address mask |
Date: |
Fri, 30 Apr 2021 18:33:03 +0200 |
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>
---
hw/i2c/aspeed_i2c.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/i2c/aspeed_i2c.c b/hw/i2c/aspeed_i2c.c
index 518a3f5c6f9d..e7133528899f 100644
--- a/hw/i2c/aspeed_i2c.c
+++ b/hw/i2c/aspeed_i2c.c
@@ -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:
--
2.26.3
- [PULL 00/18] aspeed queue, Cédric Le Goater, 2021/04/30
- [PULL 09/18] tests/acceptance: Test ast2400 and ast2500 machines, Cédric Le Goater, 2021/04/30
- [PULL 04/18] aspeed/i2c: Rename DMA address space, Cédric Le Goater, 2021/04/30
- [PULL 05/18] hw/arm/aspeed: Do not sysbus-map mmio flash region directly, use alias, Cédric Le Goater, 2021/04/30
- [PULL 08/18] tests/qtest: Add test for Aspeed HACE, Cédric Le Goater, 2021/04/30
- [PULL 03/18] aspeed/i2c: Fix DMA address mask,
Cédric Le Goater <=
- [PULL 06/18] hw: Model ASPEED's Hash and Crypto Engine, Cédric Le Goater, 2021/04/30
- [PULL 07/18] aspeed: Integrate HACE, Cédric Le Goater, 2021/04/30
- [PULL 01/18] aspeed/smc: Use the RAM memory region for DMAs, Cédric Le Goater, 2021/04/30
- [PULL 02/18] aspeed/smc: Remove unused "sdram-base" property, Cédric Le Goater, 2021/04/30
- Re: [PULL 00/18] aspeed queue, Cédric Le Goater, 2021/04/30
- Re: [PULL 00/18] aspeed queue, Peter Maydell, 2021/04/30