i2c: mxc_i2c: Use hex notation for the base address
Subsystems (2)
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
@@ -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
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
Signed-off-by Fabio Estevam <[email protected]>---
Quoted 16 lines
drivers/i2c/mxc_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/i2c/mxc_i2c.c +1
-1@@ -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
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.
Signed-off-by Fabio Estevam <[email protected]>--- 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]
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
Signed-off-by Fabio Estevam <[email protected]>Acked-by Dhruva Gole <[email protected]>Reviewed-by Heiko Schocher <[email protected]>--- 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]