Skip to contentSkip to conversation

hw/i2c/imx: Fix trace func name error

PATCH In review [email protected] 2 participants 2 messages Dec 18, 2025 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/i2c/imx: Fix trace func name error

From: Alano Song <[email protected]>

---
 hw/i2c/imx_i2c.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
hw/i2c/imx_i2c.c +2 -2
index d26177c85d..22b10e4166 100644
@@ -151,8 +151,8 @@ static void imx_i2c_write(void *opaque, hwaddr offset,
 {
     IMXI2CState *s = IMX_I2C(opaque);
 
-    trace_imx_i2c_read(DEVICE(s)->canonical_path, imx_i2c_get_regname(offset),
-                       offset, value);
+    trace_imx_i2c_write(DEVICE(s)->canonical_path, imx_i2c_get_regname(offset),
+                        offset, value);
 
     value &= 0xff;
 
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 2 lines · On 18/12/25 15:11, [email protected] wrote:

From: Alano Song <[email protected]>

Oops.

Fixes e589c0ea9c9 ("hw/i2c/imx_i2c: Convert DPRINTF() to trace events")
Quoted 20 lines
---
  hw/i2c/imx_i2c.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
hw/i2c/imx_i2c.c +2 -2
index d26177c85d..22b10e4166 100644
@@ -151,8 +151,8 @@ static void imx_i2c_write(void *opaque, hwaddr offset,
  {
      IMXI2CState *s = IMX_I2C(opaque);
 
-    trace_imx_i2c_read(DEVICE(s)->canonical_path, imx_i2c_get_regname(offset),
-                       offset, value);
+    trace_imx_i2c_write(DEVICE(s)->canonical_path, imx_i2c_get_regname(offset),
+                        offset, value);
 
      value &= 0xff;