2022-09-07 14:15:52

by Andy Shevchenko

[permalink] [raw]
Subject: Re: [v7 13/14] iio: imu: add BNO055 I2C driver

On Wed, Sep 7, 2022 at 4:22 PM <[email protected]> wrote:
>
> From: Andrea Merello <[email protected]>
>
> Add an I2C driver for communicating to a BNO055 IMU via I2C bus and enable
> the BNO055 core driver to work in this scenario.
>
> Signed-off-by: Andrea Merello <[email protected]>

> Reviewed-by: Andy Shevchenko <[email protected]>

Hmm... It has my tag but I have noticed something to improve.

...

> +#define BNO055_I2C_XFER_BURST_BREAK_THRESHOLD 3 /* FIXME */

Can we elaborate what to fix and why it can't be fixed right now?

...

> +static const struct of_device_id __maybe_unused bno055_i2c_of_match[] = {
> + { .compatible = "bosch,bno055" },

> + { },

No comma for the terminator entry.

> +};

...

> + .of_match_table = of_match_ptr(bno055_i2c_of_match),

No of_match_ptr(). This will disable ACPI support along with potential
compiler warning.

--
With Best Regards,
Andy Shevchenko


2022-09-08 07:07:47

by Andrea Merello

[permalink] [raw]
Subject: Re: [v7 13/14] iio: imu: add BNO055 I2C driver

> Hmm... It has my tag but I have noticed something to improve.

One comment below, OK for the rest.

> ...
>
> > +#define BNO055_I2C_XFER_BURST_BREAK_THRESHOLD 3 /* FIXME */
>
> Can we elaborate what to fix and why it can't be fixed right now?

Ah, this is a stale comment; I'll drop it..

2022-09-18 17:50:42

by Jonathan Cameron

[permalink] [raw]
Subject: Re: [v7 13/14] iio: imu: add BNO055 I2C driver

On Thu, 8 Sep 2022 08:42:01 +0200
Andrea Merello <[email protected]> wrote:

> > Hmm... It has my tag but I have noticed something to improve.
>
> One comment below, OK for the rest.
>
> > ...
> >
> > > +#define BNO055_I2C_XFER_BURST_BREAK_THRESHOLD 3 /* FIXME */
> >
> > Can we elaborate what to fix and why it can't be fixed right now?
>
> Ah, this is a stale comment; I'll drop it..

I fixed up Andy's comments on this patch whilst applying.

Thanks,

Jonathan