Re: [PATCH 1/1] bsps/beagle: register i2c device at initialization

2019-09-18 Thread Vijay Kumar Banerjee
On Wed, Sep 18, 2019 at 11:29 PM Christian Mauderer wrote: > Hello Vijay, > > I tried it and the patch works. But there is a point that might could be > improved: > > My application can still call bbb_register_i2c_0(). If I do that it > returns an error code. That's better than if it would just i

Re: [PATCH 1/1] bsps/beagle: register i2c device at initialization

2019-09-18 Thread Christian Mauderer
Hello Vijay, I tried it and the patch works. But there is a point that might could be improved: My application can still call bbb_register_i2c_0(). If I do that it returns an error code. That's better than if it would just initialize the bus twice. But it's not very clear from a user perspective.

[PATCH 1/1] bsps/beagle: register i2c device at initialization

2019-09-17 Thread Vijay Kumar Banerjee
--- bsps/arm/beagle/i2c/bbb-i2c.c| 6 +++--- bsps/arm/beagle/start/bspstart.c | 13 + 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/bsps/arm/beagle/i2c/bbb-i2c.c b/bsps/arm/beagle/i2c/bbb-i2c.c index 37b88864b9..f705078085 100644 --- a/bsps/arm/beagle/i2c/bbb-i2c