1
From ff101a510783be9ee057a71ae572978c1cb7e1dc Mon Sep 17 00:00:00 2001
2
From: Peter Maydell <peter.maydell@linaro.org>
3
Date: Mon, 18 Feb 2013 16:58:27 +0000
4
Subject: [PATCH 25/69] hw/omap_i2c: Treat 32 bit accesses like 16 bit accesses
6
Treat 32 bit OMAP i2c register accesses like 16 bit accesses, working
7
around the kernel bug LP:727781 where it makes 32 bit accesses in violation
8
of the TRM. (Hardware behaviour is apparently that OMAP2 will abort on
9
these 32 bit accesses, but OMAP3 and 4 will allow them.)
11
We might need to revert or rethink this patch as part of handling silencing
12
of bad-kernel-behaviour warnings more consistently so that they can be
15
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
17
hw/i2c/omap_i2c.c | 4 ++--
18
1 file changed, 2 insertions(+), 2 deletions(-)
20
diff --git a/hw/i2c/omap_i2c.c b/hw/i2c/omap_i2c.c
21
index 7580438..cfaac07 100644
22
--- a/hw/i2c/omap_i2c.c
23
+++ b/hw/i2c/omap_i2c.c
24
@@ -643,12 +643,12 @@ static const MemoryRegionOps omap_i2c_ops = {
28
- omap_badwidth_read16,
32
omap_i2c_writeb, /* Only the last fifo write can be 8 bit. */
34
- omap_badwidth_write16,
38
.endianness = DEVICE_NATIVE_ENDIAN,