i2c: Bugfix in i2c_get_chip_by_phandle()
PATCH 1/1 i2c: Bugfix in i2c_get_chip_by_phandle()
The "i2cbcdev" sneaked in when implementing this function for the bootcounter use case. Obviously the intention was to use prop_name instead.
--- drivers/i2c/i2c-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/i2c-uclass.c +1 -1
@@ -428,7 +428,7 @@ int i2c_get_chip_by_phandle(const struct udevice *parent, const char *prop_name, goto err_exit; } - ret =dev_read_u32 (parent,"i2cbcdev" , &phandle); + ret =dev_read_u32 (parent, prop_name, &phandle);if (ret) goto err_exit;
Signature · 1 line
2.39.2
Hello Philip,
Quoted 10 lines · Philip Oberfichtner
The "i2cbcdev" sneaked in when implementing this function for the bootcounter use case. Obviously the intention was to use
prop_nameinstead.Fixes b483552773 (i2c: Implement i2c_get_chip_by_phandle())Signed-off-by Philip Oberfichtner <[email protected]>--- drivers/i2c/i2c-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Indeed!
@Tom: Do you want a pull request from me, or can you pick up this?
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]
Quoted 14 lines · Heiko Schocher
Hello Philip,
Quoted 10 lines · Philip Oberfichtner
The "i2cbcdev" sneaked in when implementing this function for the bootcounter use case. Obviously the intention was to use
prop_nameinstead.Fixes b483552773 (i2c: Implement i2c_get_chip_by_phandle())Signed-off-by Philip Oberfichtner <[email protected]>--- drivers/i2c/i2c-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 5 lines
Indeed!
Acked-by Heiko Schocher <[email protected]>@Tom: Do you want a pull request from me, or can you pick up this?
I can get just this, thanks.
Signature · 1 line
Tom
Quoted 8 lines · Philip Oberfichtner
The "i2cbcdev" sneaked in when implementing this function for the bootcounter use case. Obviously the intention was to use
prop_nameinstead.Fixes b483552773 (i2c: Implement i2c_get_chip_by_phandle())[...]
Applied to u-boot/master, thanks!
Signature · 1 line
Tom