Message ID | cover.1550768574.git.hns@goldelico.com (mailing list archive) |
---|---|
Headers | show |
Series | iio mount matrix - revitalize missing bindings documentation and provide code for bmc150, bmg160, bma180, itg3200, hmc584x | expand |
On Thu, Feb 21, 2019 at 7:04 PM H. Nikolaus Schaller <hns@goldelico.com> wrote: > > Fixes V2: > * make get_mount_matrix() functions more readable (use temp variable) > (suggested by Jonathan and Andy) > * add these readability improvements also for ak8975 and mpu6050 > (suggested by Jonathan and Andy) > * squash bindings documentation into single commit for better discussion > (suggested by Linus) > * FOR DISCUSSION: add some more clarifications to the bindings documentation > and an attempt to define the magnetometer orientation > * add "iio: Allow to read mount matrix from ACPI" to the beginning of > the series to make it compile > (suggested by Andy) > * replace of_iio_read_mount_matrix() by iio_read_mount_matrix() > (required by "iio: Allow to read mount matrix from ACPI") > * drop patch to convert bma180 to devm (potential race) > (suggested by Jonathan) > > PATCH V1 2019-02-20 15:01:02: > This patch series adds the mount-matrix to several iio sensor drivers > used in handheld devices. > > The mount-matrix translates the quite arbitrary orientation of the sensor > on some printed circuit board to user-tangible orientation in handheld > devices that relates to typical screen orientation. > > There was a bindings documentation by Linus Walleij but the patch > did not make it into mainline. Therefore I resend it here. > > Next I have added some clarifications (at least I hope it clarifies) > in a second patch. > > Finally, the patch set implements the hooks for the mount matrix > in several iio drivers: bmc150, bma180, bmg160, itg3200, hmc5843. > This includes also one patch for the bma180 to convert it to devm API. > > We use them in different variants of the omap3-gta04 so a separate > patch set will provide device tree additions for them. > Thank you, it looks nice. FWIW, Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> > > Andy Shevchenko (1): > iio: Allow to read mount matrix from ACPI > > H. Nikolaus Schaller (8): > iio: accel: bmc150: add mount matrix support > iio: accel: bma180: add mount matrix support > iio: gyro: bmg160: add mount matrix support > iio: gyro: itg3200: add mount matrix support > iio: magnetometer: bmc150: add mount matrix support > iio: magnetometer: hmc5843: add mount matrix support > iio: mpu6050: improve code readability > iio: ak8975: improve code readability > > Linus Walleij (1): > iio: document bindings for mounting matrices > > .../devicetree/bindings/iio/mount-matrix.txt | 204 ++++++++++++++++++ > drivers/iio/accel/bma180.c | 18 +- > drivers/iio/accel/bmc150-accel-core.c | 21 ++ > drivers/iio/accel/kxsd9.c | 4 +- > drivers/iio/gyro/bmg160_core.c | 21 ++ > drivers/iio/gyro/itg3200_core.c | 20 ++ > drivers/iio/gyro/mpu3050-core.c | 3 +- > drivers/iio/imu/inv_mpu6050/inv_mpu_core.c | 10 +- > drivers/iio/industrialio-core.c | 46 ++-- > drivers/iio/magnetometer/ak8974.c | 5 +- > drivers/iio/magnetometer/ak8975.c | 13 +- > drivers/iio/magnetometer/bmc150_magn.c | 21 ++ > drivers/iio/magnetometer/hmc5843.h | 1 + > drivers/iio/magnetometer/hmc5843_core.c | 20 +- > include/linux/iio/gyro/itg3200.h | 1 + > include/linux/iio/iio.h | 4 +- > 16 files changed, 361 insertions(+), 51 deletions(-) > create mode 100644 Documentation/devicetree/bindings/iio/mount-matrix.txt > > -- > 2.19.1 >
On Thu, Feb 21, 2019 at 6:03 PM H. Nikolaus Schaller <hns@goldelico.com> wrote: > Fixes V2: > * make get_mount_matrix() functions more readable (use temp variable) > (suggested by Jonathan and Andy) > * add these readability improvements also for ak8975 and mpu6050 > (suggested by Jonathan and Andy) > * squash bindings documentation into single commit for better discussion > (suggested by Linus) > * FOR DISCUSSION: add some more clarifications to the bindings documentation > and an attempt to define the magnetometer orientation > * add "iio: Allow to read mount matrix from ACPI" to the beginning of > the series to make it compile > (suggested by Andy) > * replace of_iio_read_mount_matrix() by iio_read_mount_matrix() > (required by "iio: Allow to read mount matrix from ACPI") > * drop patch to convert bma180 to devm (potential race) > (suggested by Jonathan) I'm a big fan of this series and I really like what you did with my old patch! Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Yours, Linus Walleij
On Fri, 22 Feb 2019 16:48:14 +0200 Andy Shevchenko <andy.shevchenko@gmail.com> wrote: > On Thu, Feb 21, 2019 at 7:04 PM H. Nikolaus Schaller <hns@goldelico.com> wrote: > > > > Fixes V2: > > * make get_mount_matrix() functions more readable (use temp variable) > > (suggested by Jonathan and Andy) > > * add these readability improvements also for ak8975 and mpu6050 > > (suggested by Jonathan and Andy) > > * squash bindings documentation into single commit for better discussion > > (suggested by Linus) > > * FOR DISCUSSION: add some more clarifications to the bindings documentation > > and an attempt to define the magnetometer orientation > > * add "iio: Allow to read mount matrix from ACPI" to the beginning of > > the series to make it compile > > (suggested by Andy) > > * replace of_iio_read_mount_matrix() by iio_read_mount_matrix() > > (required by "iio: Allow to read mount matrix from ACPI") > > * drop patch to convert bma180 to devm (potential race) > > (suggested by Jonathan) > > > > PATCH V1 2019-02-20 15:01:02: > > This patch series adds the mount-matrix to several iio sensor drivers > > used in handheld devices. > > > > The mount-matrix translates the quite arbitrary orientation of the sensor > > on some printed circuit board to user-tangible orientation in handheld > > devices that relates to typical screen orientation. > > > > There was a bindings documentation by Linus Walleij but the patch > > did not make it into mainline. Therefore I resend it here. > > > > Next I have added some clarifications (at least I hope it clarifies) > > in a second patch. > > > > Finally, the patch set implements the hooks for the mount matrix > > in several iio drivers: bmc150, bma180, bmg160, itg3200, hmc5843. > > This includes also one patch for the bma180 to convert it to devm API. > > > > We use them in different variants of the omap3-gta04 so a separate > > patch set will provide device tree additions for them. > > > > Thank you, it looks nice. > FWIW, > Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> > Thanks to Linus and Andy for reviews. I've picked up all but they documentation patch. I think it is 'very nearly there', but would like a few really minor tweaks. Seemed silly to stall the other patches on that though! Thanks, Jonathan
Hi Jonathan, > Am 03.03.2019 um 16:32 schrieb Jonathan Cameron <jic23@kernel.org>: > > Thanks to Linus and Andy for reviews. > I've picked up all but they documentation patch. I think > it is 'very nearly there', but would like a few really minor > tweaks. Seemed silly to stall the other patches on that though! Seems they have stalled elsewhere since they did not yet arrive in linux-next. The documentation patch is still on my todo list and will need a little more time but that should not block the others. BR and thanks, Nikolaus
On Thu, 4 Apr 2019 08:29:12 +0200 "H. Nikolaus Schaller" <hns@goldelico.com> wrote: > Hi Jonathan, > > > Am 03.03.2019 um 16:32 schrieb Jonathan Cameron <jic23@kernel.org>: > > > > Thanks to Linus and Andy for reviews. > > I've picked up all but they documentation patch. I think > > it is 'very nearly there', but would like a few really minor > > tweaks. Seemed silly to stall the other patches on that though! > > Seems they have stalled elsewhere since they did not yet arrive in linux-next. The iio tree is not directly pulled into linux-next. Hence IIO patches only turn up there once I've sent a pull request to Greg and they have entered the staging-next tree. They still haven't quite made it into linux-next, but I'd imagine they will tomorrow. Jonathan > > The documentation patch is still on my todo list and will need a little more time > but that should not block the others. Absolutely, this was just tree handling delays and me messing up a pull request to slow things down even more. Jonathan > > BR and thanks, > Nikolaus >