Skip to contentSkip to conversation

i2c: mxc_i2c: Use hex notation for the base address

PATCH In review Fabio Estevam 3 participants 4 messages Jan 3, 2023 – Feb 13, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i2c: mxc_i2c: Use hex notation for the base address

Printing the I2C controller base address in decimal notation is not helpful.

Change it to hex notation, which is the standard format found in the Reference Manual and devicetree.

---
 drivers/i2c/mxc_i2c.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/mxc_i2c.c +1 -1
index f80ff5383b..9dd349d056 100644
@@ -938,7 +938,7 @@ static int mxc_i2c_probe(struct udevice *bus)
 	 * we can set pinmux here in probe function.
 	 */
 
-	debug("i2c : controller bus %d at %lu , speed %d: ",
+	debug("i2c : controller bus %d at 0x%lx , speed %d: ",
 	      dev_seq(bus), i2c_bus->base,
 	      i2c_bus->speed);
 
Signature · 1 line
2.25.1
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Fabio Estevam

Printing the I2C controller base address in decimal notation is not helpful.

Change it to hex notation, which is the standard format found in the Reference Manual and devicetree.

Agree

Quoted 3 lines

---

Quoted 16 lines
  drivers/i2c/mxc_i2c.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/mxc_i2c.c +1 -1
index f80ff5383b..9dd349d056 100644
@@ -938,7 +938,7 @@ static int mxc_i2c_probe(struct udevice *bus)
  	 * we can set pinmux here in probe function.
  	 */
 
-	debug("i2c : controller bus %d at %lu , speed %d: ",
+	debug("i2c : controller bus %d at 0x%lx , speed %d: ",
  	      dev_seq(bus), i2c_bus->base,
  	      i2c_bus->speed);
 
Signature · 2 lines
Thanks and Regards,
Dhruva Gole
Reviewed-by on v1 1/1
#2 lore raw
In reply to Fabio Estevam

Hello Fabio,

Quoted 10 lines · Fabio Estevam

Printing the I2C controller base address in decimal notation is not helpful.

Change it to hex notation, which is the standard format found in the Reference Manual and devicetree.

---
 drivers/i2c/mxc_i2c.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Thanks!

bye,
Heiko

Signature · 3 lines
DENX Software Engineering GmbH,      Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: [email protected]
#3 lore raw
In reply to Fabio Estevam

Hello Fabio,

Quoted 6 lines · Fabio Estevam

Printing the I2C controller base address in decimal notation is not helpful.

Change it to hex notation, which is the standard format found in the Reference Manual and devicetree.

Quoted 6 lines
---
 drivers/i2c/mxc_i2c.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to u-boot-i2c.git master

bye,
Heiko

Signature · 3 lines
DENX Software Engineering GmbH,      Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: [email protected]