Re: [PATCH 1/3] iio: add IIO_MASSCONCENTRATION channel type

2018-12-02 Thread Matt Ranostay
On Sat, Dec 1, 2018 at 5:48 PM Jonathan Cameron wrote: > > On Sun, 25 Nov 2018 16:44:23 +0100 > Tomasz Duszynski wrote: > > > On Sun, Nov 25, 2018 at 06:14:44AM -0800, Matt Ranostay wrote: > > > On Sun, Nov 25, 2018 at 6:03 AM Jonathan Cameron > > > wrote: &g

Re: [PATCH 1/3] iio: add IIO_MASSCONCENTRATION channel type

2018-11-25 Thread Matt Ranostay
On Sun, Nov 25, 2018 at 6:03 AM Jonathan Cameron wrote: > > On Sun, 25 Nov 2018 05:51:32 -0800 > Matt Ranostay wrote: > > > On Sat, Nov 24, 2018 at 2:14 PM Tomasz Duszynski wrote: > > > > > > Measuring particulate matter in ug / m3 (micro-grams per cub

Re: [PATCH 1/3] iio: add IIO_MASSCONCENTRATION channel type

2018-11-25 Thread Matt Ranostay
On Sat, Nov 24, 2018 at 2:14 PM Tomasz Duszynski wrote: > > Measuring particulate matter in ug / m3 (micro-grams per cubic meter) > is de facto standard. Existing air quality sensors usually follow > this convention and are capable of returning measurements using > this unit. > > IIO currently

Re: [PATCH] iio: adc: ina2xx: fix missing break statement

2018-10-10 Thread Matt Ranostay
On Tue, Oct 9, 2018 at 5:09 AM Colin King wrote: > > From: Colin Ian King > > The IIO_CHAN_INFO_SCALE case is missing a break statement and in > the unlikely event that chan->address is not matched in the nested > switch statement then the code falls through to the following >

Re: [PATCH] iio: proximity: lidar-v2: replace i2c block access method with the one already implemented.

2018-09-13 Thread Matt Ranostay
On Wed, Sep 12, 2018 at 8:51 PM Song Qiang wrote: > > This driver tries to access a block of data on a i2c bus and it tries > to manually make a device command frame and a consecutively read frame, > then uses i2c_transfer() to read data. But this has already been > implemented in

Re: [PATCH v3] iio: chemical: Add support for Bosch BME680 sensor

2018-07-11 Thread Matt Ranostay
On Wed, Jul 11, 2018 at 5:13 AM, Himanshu Jha wrote: > Bosch BME680 is a 4-in-1 sensor with temperature, pressure, humidity > and gas sensing capability. It supports both I2C and SPI communication > protocol for effective data communication. > > The device supports two modes: > > 1. Sleep mode >

[PATCH] tsl2550: fix lux1_input error in low light

2018-06-09 Thread Matt Ranostay
. This patch changes the resulting lux1_input sysfs attribute message from "Resource temporarily unavailable" to a user-grokable lux value of 0. Cc: Arnd Bergmann Cc: Greg Kroah-Hartman Signed-off-by: Matt Ranostay --- drivers/misc/tsl2550.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

Re: [RFC PATCH 1/1] power: supply: bq27xxx: Call power_supply_changed on status change

2018-02-27 Thread Matt Ranostay
Commit message please :) On Tue, Feb 27, 2018 at 5:04 PM, Merlijn Wajer wrote: > Signed-off-by: Merlijn Wajer > --- Single patch changes usually don't have a cover letter. you put more detail here in the cutoff section (aka after --- above) >

Re: [PATCH v2] IIO: bmp280-core.c: fix error in humidity calculation

2017-04-11 Thread Matt Ranostay
. > > Signed-off-by: Andreas Klinger <a...@it-klinger.de> Reviewed-by: Matt Ranostay <matt.ranos...@konsulko.com> > --- > drivers/iio/pressure/bmp280-core.c | 11 ++- > 1 file changed, 6 insertions(+), 5 deletions(-) > > diff --git a/drivers/iio/pressure/bmp28

Re: [PATCH] IIO: bmp280-core.c: fix error in humidity calculation

2017-04-08 Thread Matt Ranostay
var = (t_fine) - 76800; > var = adc_humidity << 14) - (H4 << 20) - (H5 * var)) > + 16384) >> 15) * (((var * H6) >> 10) > * (((var * H3) >> 11) + 32768)) >> 10) > + 2097152) * H2 + 819

Re: [PATCH] IIO: bmp280-core.c: fix error in humidity calculation

2017-04-07 Thread Matt Ranostay
On Mon, Apr 3, 2017 at 11:16 PM, Matt Ranostay <matt.ranos...@konsulko.com> wrote: > On Sun, Apr 2, 2017 at 10:29 AM, Andreas Klinger <a...@it-klinger.de> wrote: >> Linus Walleij <linus.wall...@linaro.org> schrieb am Sun, 02. Apr 16:56: >>> On Sun, Apr 2, 20

Re: [PATCH] IIO: bmp280-core.c: fix error in humidity calculation

2017-04-04 Thread Matt Ranostay
t;> of the sensor. >> >> >> >> Signed-off-by: Andreas Klinger <a...@it-klinger.de> >> > >> > Looks superficially right to me, but would like an Ack from Linus Walleij. >> >> I didn't work on these calculations, only infrastructure for the drive

[PATCH RESEND 2/2] pps: fix padding issue with PPS_FETCH for ioctl_compat

2017-03-10 Thread Matt Ranostay
Issue is that x86 32-bit aligns to 4-bytes instead of 8-bytes so this patchset works around the issue and corrects the data returned in pps_fdata_compat. Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Acked-by: Rodolfo Giometti <giome...@enneenne.com> Signed-off-by: Matt Ranostay

[PATCH RESEND 1/2] pps: add ioctl_compat function to correct ioctl definitions

2017-03-10 Thread Matt Ranostay
gre...@linuxfoundation.org> Acked-by: Rodolfo Giometti <giome...@enneenne.com> Signed-off-by: Matt Ranostay <matt.ranos...@konsulko.com> --- drivers/pps/pps.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/pps/pps.c b/drivers/pps/pps.c index 2f07cd615665..4

[PATCH RESEND 0/2] pps: add ioctl_compat support

2017-03-10 Thread Matt Ranostay
in changes Matt Ranostay (2): pps: add ioctl_compat function to correct ioctl definitions pps: fix padding issue with PPS_FETCH for ioctl_compat drivers/pps/pps.c| 123 +++ include/uapi/linux/pps.h | 19 2 files changed, 111 insertions

[PATCH 2/2] pps: fix padding issue with PPS_FETCH for ioctl_compat

2017-02-24 Thread Matt Ranostay
ail.com> Signed-off-by: Matt Ranostay <matt.ranos...@konsulko.com> --- drivers/pps/pps.c| 110 ++- include/uapi/linux/pps.h | 19 2 files changed, 98 insertions(+), 31 deletions(-) diff --git a/drivers/pps/pps.c b/drivers/pps/

[PATCH 1/2] pps: add ioctl_compat function to correct ioctl definitions

2017-02-24 Thread Matt Ranostay
ome...@enneenne.com> Cc: Moritz Fischer <m...@kernel.org> Cc: George McCollister <george.mccollis...@gmail.com> Signed-off-by: Matt Ranostay <matt.ranos...@konsulko.com> --- drivers/pps/pps.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/pps/pps.c b

[PATCH 0/2] pps: add ioctl_compat support

2017-02-24 Thread Matt Ranostay
This series fixes issues with 32-bit userspace + 64-bit kernel data structures, and along with fixing incorrect ioctl definitions in a ABI stable way Matt Ranostay (2): pps: add ioctl_compat function to correct ioctl definitions pps: fix padding issue with PPS_FETCH for ioctl_compat drivers

Re: [PATCH 2/4] iio: chemical: add driver for dsm501/ppd42ns particle sensors

2017-02-05 Thread Matt Ranostay
> On Feb 5, 2017, at 08:24, Tomasz Duszynski wrote: > > Thanks for review! > >> On Sun, Feb 05, 2017 at 04:19:47PM +0100, Peter Meerwald-Stadler wrote: >> >>> This patch adds support for dsm501 and ppd42ns particle sensors. >> >> quick comments below >> G >>> Both sensors

[PATCH] mailmap: Change email to new Konsulko email

2017-02-04 Thread Matt Ranostay
Signed-off-by: Matt Ranostay <matt@ranostay.consulting> --- .mailmap | 1 + 1 file changed, 1 insertion(+) diff --git a/.mailmap b/.mailmap index 67dc22ffc9a8..e775f792d436 100644 --- a/.mailmap +++ b/.mailmap @@ -109,6 +109,7 @@ Mauro Carvalho Chehab <mche...@kernel.or

Re: [PATCH v3 1/2] devicetree: document new marvell-8xxx and pwrseq-sd8787 options

2017-01-23 Thread Matt Ranostay
On Mon, Jan 23, 2017 at 9:04 AM, Rob Herring <r...@kernel.org> wrote: > On Fri, Jan 20, 2017 at 09:50:38PM -0800, Matt Ranostay wrote: >> Cc: devicet...@vger.kernel.org >> Signed-off-by: Matt Ranostay <matt@ranostay.consulting> >> --- >> .../device

[PATCH v3 2/2] mmc: pwrseq: add support for Marvell SD8787 chip

2017-01-20 Thread Matt Ranostay
Allow power sequencing for the Marvell SD8787 Wifi/BT chip. This can be abstracted to other chipsets if needed in the future. Cc: Tony Lindgren <t...@atomide.com> Cc: Ulf Hansson <ulf.hans...@linaro.org> Signed-off-by: Matt Ranostay <matt@ranostay.consulting> --- driver

[PATCH v3 1/2] devicetree: document new marvell-8xxx and pwrseq-sd8787 options

2017-01-20 Thread Matt Ranostay
Cc: devicet...@vger.kernel.org Signed-off-by: Matt Ranostay <matt@ranostay.consulting> --- .../devicetree/bindings/mmc/mmc-pwrseq-sd8787.txt | 14 ++ .../devicetree/bindings/net/wireless/marvell-8xxx.txt | 7 ++- 2 files changed, 20 insertions(+), 1 de

[PATCH v3 0/2] mmc: pwrseq: add support for Marvell SD8787 chip

2017-01-20 Thread Matt Ranostay
Changes from v1: * split devictree docs from pwrseq changes * rebase devicetree documents due to filename change * rebase pwrseq patchset Changes from v2: * update device tree bindings to powerdown-gpios and document active state Matt Ranostay (2): devicetree: document new marvell-8xxx

Re: [PATCH v3] iio: light: acpi-als: Properly enable on ASUS Zenbooks

2017-01-19 Thread Matt Ranostay
On Thu, Jan 19, 2017 at 11:01 AM, Josef Gajdusek wrote: > ASUS Zenbooks need several special ACPI calls to enable the ALS peripheral. > Otherwise, reads just return 0. > > Signed-off-by: Josef Gajdusek > --- > drivers/iio/light/acpi-als.c | 60 >

Re: [PATCH v3 2/2] mmc: pwrseq: add support for Marvell SD8787 chip

2017-01-18 Thread Matt Ranostay
On Sun, Jan 15, 2017 at 6:35 PM, Shawn Lin <shawn@rock-chips.com> wrote: > On 2017/1/16 5:41, Matt Ranostay wrote: >> >> On Thu, Jan 12, 2017 at 11:16 PM, Shawn Lin <shawn@rock-chips.com> >> wrote: >>> >>> On 2017/1/13 13:29, Matt Ra

Re: [PATCH] iio: health: max30100: use msleep() for long uncritical delays

2017-01-16 Thread Matt Ranostay
nse. Also long as it guaranteed to be at least 35 milliseconds. Reviewed-by: Matt Ranostay <matt.ranos...@konsulko.com> > > Fixes: commit 4d33615df58b ("iio: light: add MAX30100 oximeter driver > support") > Link: http://lkml.org/lkml/2017/1/11/377 > Signed-off-by: Nichol

Re: [PATCH v3 2/2] mmc: pwrseq: add support for Marvell SD8787 chip

2017-01-15 Thread Matt Ranostay
On Thu, Jan 12, 2017 at 11:16 PM, Shawn Lin <shawn@rock-chips.com> wrote: > On 2017/1/13 13:29, Matt Ranostay wrote: >> >> Allow power sequencing for the Marvell SD8787 Wifi/BT chip. >> This can be abstracted to other chipsets if needed in the future. >> >&

[PATCH v3 1/2] devicetree: document new marvell-8xxx and pwrseq-sd8787 options

2017-01-12 Thread Matt Ranostay
Cc: devicet...@vger.kernel.org Signed-off-by: Matt Ranostay <matt@ranostay.consulting> --- .../devicetree/bindings/mmc/mmc-pwrseq-sd8787.txt | 14 ++ .../devicetree/bindings/net/wireless/marvell-8xxx.txt | 7 ++- 2 files changed, 20 insertions(+), 1 de

[PATCH v3 0/2] mmc: pwrseq: add support for Marvell SD8787 chip

2017-01-12 Thread Matt Ranostay
Changes from v1: * split devictree docs from pwrseq changes * rebase devicetree documents due to filename change * rebase pwrseq patchset Changes from v2: * fix rookie mistake missing the main source file and docs Matt Ranostay (2): devicetree: document new marvell-8xxx and pwrseq-sd8787

[PATCH v3 2/2] mmc: pwrseq: add support for Marvell SD8787 chip

2017-01-12 Thread Matt Ranostay
Allow power sequencing for the Marvell SD8787 Wifi/BT chip. This can be abstracted to other chipsets if needed in the future. Cc: Tony Lindgren <t...@atomide.com> Cc: Ulf Hansson <ulf.hans...@linaro.org> Signed-off-by: Matt Ranostay <matt@ranostay.consulting> --- driver

[PATCH v3 0/2] mmc: pwrseq: add support for Marvell SD8787 chip

2017-01-12 Thread Matt Ranostay
Changes from v1: * split devictree docs from pwrseq changes * rebase devicetree documents due to filename change * rebase pwrseq patchset Changes from v2: * fix rookie mistake missing the main source file and docs Matt Ranostay (2): devicetree: document new marvell-8xxx and pwrseq-sd8787

Re: [PATCH v2 2/2] mmc: pwrseq: add support for Marvell SD8787 chip

2017-01-12 Thread Matt Ranostay
On Thu, Jan 12, 2017 at 9:22 PM, Matt Ranostay <matt@ranostay.consulting> wrote: > Allow power sequencing for the Marvell SD8787 Wifi/BT chip. > This can be abstracted to other chipsets if needed in the future. Er crap seems how the main patch file got dropped out. Resubmitting

[PATCH v2 1/2] devicetree: document vmmc-supply and mmc-pwrseq options

2017-01-12 Thread Matt Ranostay
Cc: devicet...@vger.kernel.org Signed-off-by: Matt Ranostay <matt@ranostay.consulting> --- Documentation/devicetree/bindings/net/wireless/marvell-8xxx.txt | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/wireless/marvell-8xxx.

[PATCH v2 2/2] mmc: pwrseq: add support for Marvell SD8787 chip

2017-01-12 Thread Matt Ranostay
Allow power sequencing for the Marvell SD8787 Wifi/BT chip. This can be abstracted to other chipsets if needed in the future. Cc: Tony Lindgren <t...@atomide.com> Cc: Ulf Hansson <ulf.hans...@linaro.org> Signed-off-by: Matt Ranostay <matt@ranostay.consulting> --- drivers/mmc/

[PATCH v2 0/2] mmc: pwrseq: add support for Marvell SD8787 chip

2017-01-12 Thread Matt Ranostay
Changes from v1: * split devictree docs from pwrseq changes * rebase devicetree documents due to filename change * rebase pwrseq patchset Matt Ranostay (2): devicetree: document vmmc-supply and mmc-pwrseq options mmc: pwrseq: add support for Marvell SD8787 chip .../devicetree/bindings/net

Re: [RFC] pps: fixing CONFIG_COMPAT issues

2017-01-02 Thread Matt Ranostay
On Fri, Dec 23, 2016 at 7:04 AM, Rodolfo Giometti <giome...@enneenne.com> wrote: > On 12/22/16 21:39, Matt Ranostay wrote: >> >> >> What would be the best way to fix the padding issue without breaking >> userspace applications? Just fixing the alignment with

[RFC] pps: fixing CONFIG_COMPAT issues

2016-12-22 Thread Matt Ranostay
Rodolfo, I'd like to get some feedback on what would be an upstreamable patch series for correcting some issues with a 64-bit kernel and using a 32-bit userspace. First issue is the compat_ioctl has to be sort of hacked since the IOCTL defines are using pointer sizes in the macro generation

Re: [PATCH 2/2] iio: adc: hx711: Add IIO driver for AVIA HX711

2016-12-17 Thread Matt Ranostay
On Tue, Dec 13, 2016 at 10:02 AM, Andreas Klinger wrote: > This is the IIO driver for AVIA HX711 ADC which ist mostly used in weighting > cells. First off cool that this is finally getting a driver... I'll have to get the SparkFun breakout and really cheap scale to test :).

[PATCH RESEND] tsl2550: fix lux1_input error in low light

2016-12-02 Thread Matt Ranostay
. This patch changes the resulting lux1_input sysfs attribute message from "Resource temporarily unavailable" to a user-grokable lux value of 0. Cc: Arnd Bergmann <a...@arndb.de> Cc: Drew Fustini <pdp7p...@gmail.com> Signed-off-by: Matt Ranostay <matt@ranostay.consulting> --- driv

Re: [PATCH] mmc: pwrseq: add support for Marvell SD8787 chip

2016-11-29 Thread Matt Ranostay
On Tue, Nov 29, 2016 at 9:13 AM, Javier Martinez Canillas <jav...@dowhile0.org> wrote: > Hello Matt, > > On Thu, Nov 17, 2016 at 10:55 PM, Matt Ranostay > <matt@ranostay.consulting> wrote: >> Allow power sequencing for the Marvell SD8787 Wifi/BT chip. >> This

Re: [PATCH v3] media: i2c-polling: add i2c-polling driver

2016-11-24 Thread Matt Ranostay
On Wed, Nov 23, 2016 at 10:31 PM, Matt Ranostay <matt@ranostay.consulting> wrote: > On Wed, Nov 23, 2016 at 8:30 AM, Laurent Pinchart > <laurent.pinch...@ideasonboard.com> wrote: >> Hi Matt, >> >> Thank you for the patch. >> >> On

Re: [PATCH v3] media: i2c-polling: add i2c-polling driver

2016-11-23 Thread Matt Ranostay
On Wed, Nov 23, 2016 at 8:30 AM, Laurent Pinchart <laurent.pinch...@ideasonboard.com> wrote: > Hi Matt, > > Thank you for the patch. > > On Tuesday 22 Nov 2016 17:18:40 Matt Ranostay wrote: >> There are several thermal sensors that only have a low-speed bus >> inte

Re: [PATCH v3] media: i2c-polling: add i2c-polling driver

2016-11-23 Thread Matt Ranostay
On Wed, Nov 23, 2016 at 8:30 AM, Laurent Pinchart <laurent.pinch...@ideasonboard.com> wrote: > Hi Matt, > > Thank you for the patch. > > On Tuesday 22 Nov 2016 17:18:40 Matt Ranostay wrote: >> There are several thermal sensors that only have a low-speed bus >> inte

Re: [PATCH v3] media: i2c-polling: add i2c-polling driver

2016-11-23 Thread Matt Ranostay
On Wed, Nov 23, 2016 at 8:30 AM, Laurent Pinchart <laurent.pinch...@ideasonboard.com> wrote: > Hi Matt, > > Thank you for the patch. > > On Tuesday 22 Nov 2016 17:18:40 Matt Ranostay wrote: >> There are several thermal sensors that only have a low-speed bus >> inte

[PATCH v3] media: i2c-polling: add i2c-polling driver

2016-11-22 Thread Matt Ranostay
..@gentoo.org> Signed-off-by: Matt Ranostay <matt@ranostay.consulting> --- Changes from v1: * correct i2c_polling_remove() operations * fixed delay calcuation in buffer_queue() * add include linux/slab.h Changes from v2: * fix build error due to typo in include of slab.h drivers/media/i2c/Kc

[PATCH] mmc: pwrseq: add support for Marvell SD8787 chip

2016-11-17 Thread Matt Ranostay
<srinivas.kandaga...@linaro.org> Signed-off-by: Matt Ranostay <matt@ranostay.consulting> --- .../devicetree/bindings/mmc/mmc-pwrseq-sd8787.txt | 14 +++ .../bindings/net/wireless/marvell-sd8xxx.txt | 4 + drivers/mmc/core/Kconfig | 10

Re: [PATCH v2] media: i2c-polling: add i2c-polling driver

2016-11-08 Thread Matt Ranostay
;>> +#include Gah wondering how it built for me. will fix in v3 > > > 2016-11-08 9:00 GMT+03:00 Matt Ranostay <matt@ranostay.consulting>: >> >> There are several thermal sensors that only have a low-speed bus >> interface but output valid video data.

[PATCH v2] media: i2c-polling: add i2c-polling driver

2016-11-07 Thread Matt Ranostay
..@gentoo.org> Signed-off-by: Matt Ranostay <matt@ranostay.consulting> --- Changes from v1: * correct i2c_polling_remove() operations * fixed delay calcuation in buffer_queue() * add include linux/slab.h drivers/media/i2c/Kconfig | 8 + drivers/media/i2c/Makefile | 1 + dri

Re: [PATCH] media: i2c-polling: add i2c-polling driver

2016-11-06 Thread Matt Ranostay
On Sun, Nov 6, 2016 at 5:21 PM, Matt Ranostay <mranos...@gmail.com> wrote: > There are several thermal sensors that only have a low-speed bus > interface but output valid video data. This patchset enables support > for the AMG88xx "Grid-Eye" sensor family. > > Cc:

[PATCH] media: i2c-polling: add i2c-polling driver

2016-11-06 Thread Matt Ranostay
..@gentoo.org> Signed-off-by: Matt Ranostay <matt@ranostay.consulting> --- drivers/media/i2c/Kconfig | 8 + drivers/media/i2c/Makefile | 1 + drivers/media/i2c/i2c-polling.c | 466 3 files changed, 475 insertions(+) create mode 1006

Re: [PATCH v2 2/2] power: bq27xxx_battery: add poll interval property query

2016-11-04 Thread Matt Ranostay
On Fri, Nov 4, 2016 at 1:29 PM, Pavel Machek <pa...@ucw.cz> wrote: > On Fri 2016-11-04 07:58:55, Tony Lindgren wrote: >> * Pavel Machek <pa...@ucw.cz> [161104 00:10]: >> > On Thu 2016-11-03 22:00:56, Matt Ranostay wrote: >> > Do you actually have hardware

Re: [RFC] v4l2 support for thermopile devices

2016-11-03 Thread Matt Ranostay
On Thu, Nov 3, 2016 at 8:11 AM, Luca Barbato <lu_z...@gentoo.org> wrote: > On 03/11/2016 14:21, Attila Kinali wrote: >> On Wed, 2 Nov 2016 23:10:41 -0700 >> Matt Ranostay <matt@ranostay.consulting> wrote: >> >>> >>> So does anyone know of any so

Re: [PATCH v2 2/2] power: bq27xxx_battery: add poll interval property query

2016-11-03 Thread Matt Ranostay
On Wed, Nov 2, 2016 at 1:22 AM, Pavel Machek wrote: > Hi! > >> >> >> Better then previous one. >> >> >> >> >> >> But my version of bq27xxx_battery.c already contains this: >> >> > >> >> > This is for allowing udev rule to set the properties as well. >> >> > otherwise a kinda crude

Re: [RFC] v4l2 support for thermopile devices

2016-11-03 Thread Matt Ranostay
On Fri, Oct 28, 2016 at 7:59 PM, Matt Ranostay <matt@ranostay.consulting> wrote: > On Fri, Oct 28, 2016 at 2:53 PM, Hans Verkuil <hverk...@xs4all.nl> wrote: >> Hi Matt, >> >> On 28/10/16 22:14, Matt Ranostay wrote: >>> >>> So want to toss a few th

Re: [PATCH v2 2/2] power: bq27xxx_battery: add poll interval property query

2016-11-01 Thread Matt Ranostay
On Mon, Oct 31, 2016 at 2:38 PM, Pavel Machek <pa...@ucw.cz> wrote: > On Mon 2016-10-31 13:22:18, Matt Ranostay wrote: >> On Tue, Oct 25, 2016 at 11:47 AM, Matt Ranostay <mranos...@gmail.com> wrote: >> > On Mon, Oct 24, 2016 at 1:14 PM, Pavel Machek <pa...@ucw.cz&g

Re: [PATCH 1/6] staging: iio: set proper supply name to devm_regulator_get()

2016-10-31 Thread Matt Ranostay
On Mon, Oct 31, 2016 at 10:04 AM, Eva Rachel Retuya wrote: > The name passed to devm_regulator_get() should match the name of the > supply as specified in the device datasheet. This makes it clear what > power supply is being referred to in case of presence of other >

Re: [PATCH v2 2/2] power: bq27xxx_battery: add poll interval property query

2016-10-31 Thread Matt Ranostay
On Tue, Oct 25, 2016 at 11:47 AM, Matt Ranostay <mranos...@gmail.com> wrote: > On Mon, Oct 24, 2016 at 1:14 PM, Pavel Machek <pa...@ucw.cz> wrote: >> On Mon 2016-10-24 12:58:25, Matt Ranostay wrote: >>> Pavel + Sebastian this is the patchset that need I some input on

Re: [RFC] v4l2 support for thermopile devices

2016-10-28 Thread Matt Ranostay
On Fri, Oct 28, 2016 at 2:53 PM, Hans Verkuil <hverk...@xs4all.nl> wrote: > Hi Matt, > > On 28/10/16 22:14, Matt Ranostay wrote: >> >> So want to toss a few thoughts on adding support for thermopile >> devices (could be used for FLIR Lepton as well) that output

Re: [RFC] v4l2 support for thermopile devices

2016-10-28 Thread Matt Ranostay
On Fri, Oct 28, 2016 at 1:30 PM, Devin Heitmueller wrote: > Hi Matt, > >> Need some input for the video pixel data types, which the device we >> are using (see datasheet links below) is outputting pixel data in >> little endian 16-bit of which a 12-bits signed value

Re: [RFC] v4l2 support for thermopile devices

2016-10-28 Thread Matt Ranostay
On Fri, Oct 28, 2016 at 1:40 PM, Marek Vasut wrote: > On 10/28/2016 10:30 PM, Devin Heitmueller wrote: >> Hi Matt, >> >>> Need some input for the video pixel data types, which the device we >>> are using (see datasheet links below) is outputting pixel data in >>> little endian

[RFC] v4l2 support for thermopile devices

2016-10-28 Thread Matt Ranostay
So want to toss a few thoughts on adding support for thermopile devices (could be used for FLIR Lepton as well) that output pixel data. These typically aren't DMA'able devices since they are low speed (partly to limiting the functionality to be in compliance with ITAR) and data is piped over

Re: [PATCH v2 2/2] power: bq27xxx_battery: add poll interval property query

2016-10-25 Thread Matt Ranostay
On Mon, Oct 24, 2016 at 1:14 PM, Pavel Machek <pa...@ucw.cz> wrote: > On Mon 2016-10-24 12:58:25, Matt Ranostay wrote: >> Pavel + Sebastian this is the patchset that need I some input on :) > > Better then previous one. > > But my version of bq27xxx

Re: [PATCH v2 2/2] power: bq27xxx_battery: add poll interval property query

2016-10-24 Thread Matt Ranostay
Pavel + Sebastian this is the patchset that need I some input on :) Thanks, Matt On Wed, Sep 28, 2016 at 12:55 PM, Matt Ranostay <mranos...@gmail.com> wrote: > Add POWER_SUPPLY_PROP_POLL_INTERVAL property to query and set the > polling interval of the fuel gauge. > > Cc: Se

Re: [PATCH 1/2] power: bq27xxx_battery: add configurable poll_interval by sysfs

2016-10-24 Thread Matt Ranostay
On Mon, Oct 24, 2016 at 12:51 PM, Pavel Machek <pa...@ucw.cz> wrote: > On Sun 2016-10-23 20:08:22, Matt Ranostay wrote: >> On Fri, Oct 7, 2016 at 11:49 AM, Pavel Machek <pa...@ucw.cz> wrote: >> > On Fri 2016-09-16 20:42:54, Matt Ranostay wrote: >> >

Re: [PATCH 1/2] power: bq27xxx_battery: add configurable poll_interval by sysfs

2016-10-23 Thread Matt Ranostay
On Fri, Oct 7, 2016 at 11:49 AM, Pavel Machek <pa...@ucw.cz> wrote: > On Fri 2016-09-16 20:42:54, Matt Ranostay wrote: >> Allow the poll_interval to be runtime configurable via an sysfs entry. >> This is needed for udev control of the poll interval. >> >> S

Re: [PATCH] leds: leds-pca963x: workaround group blink scaling issue

2016-10-15 Thread Matt Ranostay
On Fri, Oct 14, 2016 at 7:20 AM, Tony Lindgren <t...@atomide.com> wrote: > * Jacek Anaszewski <j.anaszew...@samsung.com> [161013 23:37]: >> On 10/13/2016 04:20 PM, Matt Ranostay wrote: >> > On Thu, Oct 13, 2016 at 4:05 PM, Jacek Anaszewski >> > <j.an

Re: [PATCH] leds: leds-pca963x: workaround group blink scaling issue

2016-10-13 Thread Matt Ranostay
On Thu, Oct 13, 2016 at 4:05 PM, Jacek Anaszewski <j.anaszew...@samsung.com> wrote: > Hi Matt, > > On 10/13/2016 03:16 PM, Matt Ranostay wrote: >> >> PCA9632TK part seems to incorrectly blink at ~1.3x of the programmed >> rate. This patchset add a nxp,period-scale

[PATCH] leds: leds-pca963x: workaround group blink scaling issue

2016-10-13 Thread Matt Ranostay
PCA9632TK part seems to incorrectly blink at ~1.3x of the programmed rate. This patchset add a nxp,period-scale devicetree property to adjust for this misconfiguration. Cc: Tony Lindgren <t...@atomide.com> Cc: Jacek Anaszewski <j.anaszew...@samsung.com> Signed-off-by: Matt Ra

[PATCH] power: bq27xxx_battery: don't update poll_interval param if same

2016-09-30 Thread Matt Ranostay
To avoid canceling the delayed workqueue needlessly, and scheduling an immediate polling. Check if the new poll_interval value is different than the previous setting. Cc: Tony Lindgren <t...@atomide.com> Cc: Sebastian Reichel <s...@kernel.org> Signed-off-by: Matt Ra

Re: [PATCH] leds: leds-pca963x: add power management support

2016-09-30 Thread Matt Ranostay
On Fri, Sep 30, 2016 at 2:23 PM, Jacek Anaszewski <jacek.anaszew...@gmail.com> wrote: > Hi Matt, > > Thanks for the patch. > > > On 09/30/2016 09:27 PM, Matt Ranostay wrote: >> >> Turn off LEDS on suspend and put device in low power state, and restore >> s

[PATCH] leds: leds-pca963x: add power management support

2016-09-30 Thread Matt Ranostay
Turn off LEDS on suspend and put device in low power state, and restore settings on resume. Cc: Tony Lindgren <t...@atomide.com> Cc: Richard Purdie <rpur...@rpsys.net> Cc: Jacek Anaszewski <j.anaszew...@samsung.com> Signed-off-by: Matt Ranostay <matt@ranostay.consulting>

[PATCH v2 2/2] power: bq27xxx_battery: add poll interval property query

2016-09-28 Thread Matt Ranostay
Add POWER_SUPPLY_PROP_POLL_INTERVAL property to query and set the polling interval of the fuel gauge. Cc: Sebastian Reichel <s...@kernel.org> Cc: Tony Lindgren <t...@atomide.com Signed-off-by: Matt Ranostay <matt@ranostay.consulting> --- drivers/power/supply/bq27xxx

[PATCH v2 1/2] power: power_supply: add new property POWER_SUPPLY_PROP_POLL_INTERVAL

2016-09-28 Thread Matt Ranostay
Add new POWER_SUPPLY_PROP_POLL_INTERVAL property to display/set the update interval in seconds of the device. Cc: Sebastian Reichel <s...@kernel.org> Cc: Tony Lindgren <t...@atomide.com Signed-off-by: Matt Ranostay <matt@ranostay.consulting> --- Documentation/power/power_suppl

[PATCH v2 0/2] power_supply: add new POWER_SUPPLY_PROP_POLL_INTERVAL property

2016-09-28 Thread Matt Ranostay
Add power supply class POWER_SUPPLY_PROP_POLL_INTERVAL to allow dynamic device statistic updating interval. Changes from v1: * Fixed milliseconds typo in commit message * Fixed file paths to drivers/power/supply * Don't update if settings are the same condition Matt Ranostay (2): power

Re: [RFC 1/2] power: power_supply: add new property POWER_SUPPLY_PROP_POLL_INTERVAL

2016-09-27 Thread Matt Ranostay
On Wed, Sep 21, 2016 at 10:52 PM, Matt Ranostay <mranos...@gmail.com> wrote: > Add new POWER_SUPPLY_PROP_POLL_INTERVAL property to display/set update > interval in milliseconds of the device. Should be seconds. > > Signed-off-by: Matt Ranostay <matt@ranostay.consulting>

Re: [PATCH] power: supply: bq24910_charger: reset first_time check

2016-09-26 Thread Matt Ranostay
Hold off on this one. Currently reworking a patch series that won't need this change after all. On Thu, Sep 22, 2016 at 8:32 PM, Matt Ranostay <mranos...@gmail.com> wrote: > bq24190_register_reset() function needs to reset the bdi->first_time > condition every time to avoid spur

[PATCH] power: supply: bq24910_charger: reset first_time check

2016-09-22 Thread Matt Ranostay
bq24190_register_reset() function needs to reset the bdi->first_time condition every time to avoid spurious interrupts in suspend/resume. Signed-off-by: Matt Ranostay <matt@ranostay.consulting> --- drivers/power/supply/bq24190_charger.c | 3 ++- 1 file changed, 2 insertions(+), 1

[RFC 2/2] power: bq27xxx_battery: add poll interval property query

2016-09-22 Thread Matt Ranostay
Add POWER_SUPPLY_PROP_POLL_INTERVAL property to query and set the polling interval of the fuel gauge. Signed-off-by: Matt Ranostay <matt@ranostay.consulting> --- drivers/power/bq27xxx_battery.c | 37 + 1 file changed, 37 insertions(+) diff --git a/d

[RFC 1/2] power: power_supply: add new property POWER_SUPPLY_PROP_POLL_INTERVAL

2016-09-22 Thread Matt Ranostay
Add new POWER_SUPPLY_PROP_POLL_INTERVAL property to display/set update interval in milliseconds of the device. Signed-off-by: Matt Ranostay <matt@ranostay.consulting> --- Documentation/power/power_supply_class.txt | 1 + drivers/power/power_supply_sysfs.c | 1 + include

[RFC 0/2] power_supply: add new POWER_SUPPLY_PROP_POLL_INTERVAL property

2016-09-22 Thread Matt Ranostay
Some drivers should report and allow changes to the device polling interval of new stats. Matt Ranostay (2): power: power_supply: add new property POWER_SUPPLY_PROP_POLL_INTERVAL power: bq27xxx_battery: add poll interval property query Documentation/power/power_supply_class.txt | 1

[PATCH] phy: phy-twl4030-usb: emit VBUS status events to userspace

2016-09-20 Thread Matt Ranostay
Emit KOBJ_ONLINE/KOBJ_OFFLINE action uevent on VBUS status changes. Cc: Tony Lindgren <t...@atomide.com> Signed-off-by: Matt Ranostay <matt@ranostay.consulting> --- drivers/phy/phy-twl4030-usb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/phy/phy-twl4030-usb.c b

[PATCH v2] power: bq27xxx_battery: allow kernel poll_interval parameter runtime update

2016-09-19 Thread Matt Ranostay
Fix issue with poll_interval being not updated till the previous interval expired. Cc: Tony Lindgren <t...@atomide.com> Cc: Liam Breck <l...@networkimprov.net> Signed-off-by: Matt Ranostay <matt@ranostay.consulting> --- Changes from v1: * Change param_get_ushort to param_g

Re: [PATCH 1/2] power: bq27xxx_battery: add configurable poll_interval by sysfs

2016-09-19 Thread Matt Ranostay
On Mon, Sep 19, 2016 at 12:46 PM, Sebastian Reichel <s...@kernel.org> wrote: > Hi, > > On Fri, Sep 16, 2016 at 08:42:54PM -0700, Matt Ranostay wrote: >> Allow the poll_interval to be runtime configurable via an sysfs >> entry. This is needed for udev control of the poll

[PATCH 2/2] power: bq27xxx_battery: allow kernel poll_interval parameter runtime update

2016-09-16 Thread Matt Ranostay
Fix issue with poll_interval being not updated till the previous interval expired. Signed-off-by: Matt Ranostay <matt@ranostay.consulting> --- drivers/power/supply/bq27xxx_battery.c | 38 +- include/linux/power/bq27xxx_battery.h | 1 + 2 files chang

[PATCH 1/2] power: bq27xxx_battery: add configurable poll_interval by sysfs

2016-09-16 Thread Matt Ranostay
Allow the poll_interval to be runtime configurable via an sysfs entry. This is needed for udev control of the poll interval. Signed-off-by: Matt Ranostay <matt@ranostay.consulting> --- drivers/power/supply/bq27xxx_battery.c | 48 +- 1 file changed, 47 inse

[PATCH 0/2] power: bq27xxx_battery: add configurable poll_interval

2016-09-16 Thread Matt Ranostay
Patchset series fixes the kernel_parameter poll_interval not scheduling the next event with the new interval. Also creates a sysfs entry that is useful for udev attribute assignment. Matt Ranostay (2): power: bq27xxx_battery: add configurable poll_interval by sysfs power: bq27xxx_battery

Re: screen rotation flipped in 4.8-rc

2016-08-31 Thread Matt Ranostay
On Wed, Aug 31, 2016 at 3:53 PM, Srinivas Pandruvada <srinivas.pandruv...@linux.intel.com> wrote: > On Wed, 2016-08-31 at 13:43 -0700, Matt Ranostay wrote: >> On Wed, Aug 31, 2016 at 1:29 PM, Pandruvada, Srinivas >> <srinivas.pandruv...@intel.com> wrote: >> > &g

Re: screen rotation flipped in 4.8-rc

2016-08-31 Thread Matt Ranostay
On Wed, Aug 31, 2016 at 1:29 PM, Pandruvada, Srinivas <srinivas.pandruv...@intel.com> wrote: > On Wed, 2016-08-31 at 13:24 -0700, Matt Ranostay wrote: >> On Wed, Aug 31, 2016 at 1:18 PM, Pandruvada, Srinivas >> <srinivas.pandruv...@intel.com> wrote: >> > &g

Re: screen rotation flipped in 4.8-rc

2016-08-31 Thread Matt Ranostay
On Wed, Aug 31, 2016 at 1:18 PM, Pandruvada, Srinivas <srinivas.pandruv...@intel.com> wrote: > On Tue, 2016-08-30 at 17:41 -0700, Matt Ranostay wrote: >> On Tue, Aug 30, 2016 at 3:42 PM, Pandruvada, Srinivas >> <srinivas.pandruv...@intel.com> wrote: >> &g

Re: screen rotation flipped in 4.8-rc

2016-08-30 Thread Matt Ranostay
On Tue, Aug 30, 2016 at 3:42 PM, Pandruvada, Srinivas wrote: > Hi All, > > I observed that using iio-sensor-proxy.service, the auto screen > rotation flipped on my laptop (Normal -> vertical, vertical->normal) > using kernel v4.8. > > Anyone else has seen this? > >

Re: [PATCH 1/2] iio: adc: ti_am335x_adc: Protect FIFO1 from concurrent access

2016-08-09 Thread Matt Ranostay
On Mon, Aug 8, 2016 at 4:05 AM, Vignesh R wrote: > It is possible that two or more ADC channels can be simultaneously > requested for raw samples, in which case there can be race in access to > FIFO data resulting in loss of samples. > If am335x_tsc_se_set_once() is called again

Re: [PATCH] iio: humidity: hdc100x: use i2c_master_recv to read sensor data

2016-08-04 Thread Matt Ranostay
On Thu, Aug 4, 2016 at 8:35 AM, Alison Schofield <amsfiel...@gmail.com> wrote: > On Wed, Aug 03, 2016 at 10:50:54PM -0700, Matt Ranostay wrote: >> On Wed, Aug 3, 2016 at 10:19 PM, Peter Meerwald-Stadler <pme...@pmeerw.net> >> wrote: >> >> > >> >

Re: [PATCH] iio: humidity: hdc100x: use i2c_master_recv to read sensor data

2016-08-03 Thread Matt Ranostay
On Wed, Aug 3, 2016 at 8:33 PM, Alison Schofield wrote: > Replace the i2c_smbus_read_byte commmands used to retrieve the sensor > data with an i2c_master_recv command. > > The smbus read byte method fails because the device does not expect a > stop condition after sending

Re: [PATCH] iio: chemical: atlas-ph-sensor: fix typo in val assignment

2016-07-27 Thread Matt Ranostay
On Mon, Jul 25, 2016 at 3:06 PM, Colin King <colin.k...@canonical.com> wrote: > From: Colin Ian King <colin.k...@canonical.com> > > Fix an incorrect assignment due to a typo on a variable name. The > variable val2 should be assigned 10 and not val. Yikes! Good ca

Re: [PATCH 2/2] input: add ADC resistor ladder driver

2016-07-02 Thread Matt Ranostay
On Fri, Jul 1, 2016 at 2:30 PM, Alexandre Belloni wrote: > A common way of multiplexing buttons on a single input in cheap devices is > to use a resistor ladder on an ADC. This driver supports that configuration > by polling an ADC channel provided by IIO. >

Re: [PATCH] iio: as3935: improve error reporting in as3935_event_work

2016-06-12 Thread Matt Ranostay
Also important to note these warnings are environment related (e.g. room with lot of EMI noise) and unlikely a chip misconfiguration. Unless the tuning capacitor setting is wrong of course > On Jun 11, 2016, at 09:32, Jonathan Cameron wrote: > >> On 31/05/16 15:53, Andrew

[PATCH] mailmap: update Matt Ranostay email address

2016-06-05 Thread Matt Ranostay
Set current email address to replace previous employers email addresses. Cc: Jonathan Cameron <ji...@kernel.org> Cc: Daniel Baluta <daniel.bal...@intel.com> Cc: linux-...@vger.kernel.org Signed-off-by: Matt Ranostay <mranos...@gmail.com> --- .mailmap | 2 ++ 1 file changed, 2 i

Re: [PATCH 3/3] iio: mma8452: update Freescale company information

2016-06-05 Thread Matt Ranostay
At this rate of acquisitions we may need a .mailmap for companies :) On Fri, Jun 3, 2016 at 5:51 AM, Martin Kepplinger wrote: > NXP took over Freescale, so add NXP to the driver descriptions > > Signed-off-by: Martin Kepplinger > --- >

Re: [PATCH] iio: as3935: improve error reporting in as3935_event_work

2016-05-30 Thread Matt Ranostay
Reviewed-by: Matt Ranostay <mranos...@gmail.com> On Mon, May 30, 2016 at 7:52 AM, Arnd Bergmann <a...@arndb.de> wrote: > gcc warns about a potentially uninitialized variable use > in as3935_event_work: > > drivers/iio/proximity/as3935.c: In function ‘as3935_event_work’:

  1   2   >