Re: [PATCH 1/1 linux-next] configfs: unexport/make static config_item_init()

2015-05-15 Thread Daniel Baluta
On Thu, May 14, 2015 at 10:14 PM, Fabian Frederick wrote: > > >> On 14 May 2015 at 12:41 Daniel Baluta wrote: >> >> >> On Wed, Apr 29, 2015 at 8:01 PM, Fabian Frederick wrote: >> > config_item_init() is only used in item.c >> > >> > Si

Re: [PATCH v6 0/4] Add initial configfs support for IIO

2015-05-14 Thread Daniel Baluta
On Wed, May 13, 2015 at 8:32 PM, Jonathan Cameron wrote: > On 13/05/15 12:14, Lars-Peter Clausen wrote: >> Hi, >> >> I'd like to go back to the issue of having one folder per trigger type and >> create triggers for a type in their respective folder. >> >> I'm not convinced that it is an intentiona

Re: [PATCH 1/1 linux-next] configfs: unexport/make static config_item_init()

2015-05-14 Thread Daniel Baluta
On Wed, Apr 29, 2015 at 8:01 PM, Fabian Frederick wrote: > config_item_init() is only used in item.c > > Signed-off-by: Fabian Frederick Nack! Have a look at drivers/usb/gadget/configfs.c > --- > fs/configfs/item.c | 3 +-- > include/linux/configfs.h | 1 - > 2 files changed, 1 insertion(

Re: [PATCH RFC 2/3] iio: Improve iio_trigger_register_with_dev to register trigger after device

2015-05-12 Thread Daniel Baluta
On Thu, Apr 16, 2015 at 12:01 PM, Robert Dolca wrote: > Until now calling iio_trigger_register_with_dev after registering the IIO > device > added the trigger to the device's trigger list and saved a reference to the > device in the trigger's struct but it did not create the symlink. > > In order

Re: [PATCH RFC 1/3] iio: Add symlink to triggers in the device's trigger folder

2015-05-12 Thread Daniel Baluta
On Thu, Apr 16, 2015 at 12:01 PM, Robert Dolca wrote: > This patch adds a new function called iio_trigger_register_with_dev > which is a wrapper for iio_trigger_register. Besides the iio_trigger > struct this function requires iio_dev struct. It adds the trigger in > the device's trigger list and

Re: [PATCH v6 0/4] Add initial configfs support for IIO

2015-05-11 Thread Daniel Baluta
On Fri, May 8, 2015 at 9:41 PM, Jonathan Cameron wrote: > On 08/05/15 09:33, Daniel Baluta wrote: >> This patchset introduces IIO software triggers, offers a way of configuring >> them via configfs and adds the IIO hrtimer based interrupt source to be used >> with softwar

Re: [PATCH v9] iio: acpi: Add support for ACPI0008 Ambient Light Sensor

2015-05-09 Thread Daniel Baluta
On Sat, May 9, 2015 at 9:45 PM, Gabriele Mazzotta wrote: > On Saturday 02 May 2015 14:30:57 Gabriele Mazzotta wrote: >> This driver adds the initial support for the ACPI Ambient Light Sensor >> as defined in Section 9.2 of the ACPI specification (Revision 5.0) [1]. >> >> Sensors complying with the

[PATCH v6 4/4] iio: Documentation: Add IIO configfs documentation

2015-05-08 Thread Daniel Baluta
Signed-off-by: Daniel Baluta --- Documentation/ABI/testing/configfs-iio | 20 Documentation/iio/iio_configfs.txt | 58 ++ 2 files changed, 78 insertions(+) create mode 100644 Documentation/ABI/testing/configfs-iio create mode 100644

[PATCH v6 3/4] iio: trigger: Introduce IIO hrtimer based trigger

2015-05-08 Thread Daniel Baluta
based on an older version from Marten and Lars-Peter. Signed-off-by: Marten Svanfeldt Signed-off-by: Lars-Peter Clausen Signed-off-by: Daniel Baluta --- drivers/iio/trigger/Kconfig| 10 ++ drivers/iio/trigger/Makefile | 2 + drivers/iio/trigger/iio-trig-hrtimer.c | 194

[PATCH v6 1/4] iio: core: Introduce IIO software triggers

2015-05-08 Thread Daniel Baluta
kernel module is loaded. Software triggers can be created directly from drivers or from user space via configfs interface. Signed-off-by: Daniel Baluta --- drivers/iio/Kconfig | 8 +++ drivers/iio/Makefile | 1 + drivers/iio/industrialio-sw-trigger.c | 115

[PATCH v6 0/4] Add initial configfs support for IIO

2015-05-08 Thread Daniel Baluta
* patch 3/4 - none * patch 4/4 - removed "Further work" chapter in iio_configfs.txt - added configfs-iio file in Documentation/ABI/testing Daniel Baluta (4): iio: core: Introduce IIO software triggers iio: core: Intro

[PATCH v6 2/4] iio: core: Introduce IIO configfs support

2015-05-08 Thread Daniel Baluta
igger core: $ mkdir /config/iio/triggers/hrtimer-instance1 Signed-off-by: Daniel Baluta --- drivers/iio/Kconfig | 8 +++ drivers/iio/Makefile| 1 + drivers/iio/industrialio-configfs.c | 117 include/linux/iio/sw_trigger.h

Re: [PATCH v2 0/3] Introduce support for MMC35240 magnetic sensor

2015-05-08 Thread Daniel Baluta
On Sun, Apr 26, 2015 at 8:00 PM, Jonathan Cameron wrote: > On 24/04/15 16:58, Daniel Baluta wrote: >> This adds support for Memsic's MMC35240 magnetometer. The sensor does >> not offer an interrupt line for data ready so for the moment we only >> expose raw re

Re: [PATCH v5 3/4] iio: trigger: Introduce IIO hrtimer based trigger

2015-05-07 Thread Daniel Baluta
On Thu, May 7, 2015 at 12:19 PM, Jonathan Cameron wrote: > On 06/05/15 18:37, Daniel Baluta wrote: >> On Wed, May 6, 2015 at 8:16 PM, Jonathan Cameron wrote: >>> On 06/05/15 17:25, Daniel Baluta wrote: >>>> >>>> >>>> On 05/05/2015 04:51 PM, J

Re: [PATCH] iio: hid-sensors: Fix memory leak on failure path in hid_prox_probe()

2015-05-07 Thread Daniel Baluta
On Thu, May 7, 2015 at 1:00 AM, Fabio Estevam wrote: > On Wed, May 6, 2015 at 6:48 PM, Alexey Khoroshilov > wrote: >> If prox_parse_report() fails, memory allocated for channels is not >> deallocated, since it is still in local variable channels >> while kfree() is called with indio_dev->channels

Re: [PATCH v5 3/4] iio: trigger: Introduce IIO hrtimer based trigger

2015-05-06 Thread Daniel Baluta
On Wed, May 6, 2015 at 8:16 PM, Jonathan Cameron wrote: > On 06/05/15 17:25, Daniel Baluta wrote: >> >> >> On 05/05/2015 04:51 PM, Jonathan Cameron wrote: >>> >>> >>> On 4 May 2015 20:54:08 GMT+01:00, Lars-Peter Clausen >>>

Re: [PATCH v5 3/4] iio: trigger: Introduce IIO hrtimer based trigger

2015-05-06 Thread Daniel Baluta
On 05/05/2015 04:51 PM, Jonathan Cameron wrote: On 4 May 2015 20:54:08 GMT+01:00, Lars-Peter Clausen wrote: On 05/04/2015 12:50 PM, Daniel Baluta wrote: [...] +IIO_HRTIMER_INFO_ATTR(sampling_frequency, S_IRUGO | S_IWUSR, + iio_hrtimer_info_show_sampling_frequency

Re: [PATCH v5 2/4] iio: core: Introduce IIO configfs support

2015-05-06 Thread Daniel Baluta
On 05/04/2015 10:59 PM, Lars-Peter Clausen wrote: On 05/04/2015 12:50 PM, Daniel Baluta wrote: This creates an IIO configfs subystem named "iio", with a default "triggers" group. Triggers group is used for handling software triggers. To create a new software trigg

Re: [PATCH v5 1/4] iio: core: Introduce IIO software triggers

2015-05-06 Thread Daniel Baluta
On Mon, May 4, 2015 at 11:11 PM, Lars-Peter Clausen wrote: > On 05/04/2015 12:50 PM, Daniel Baluta wrote: >> >> A software trigger associates an IIO device trigger with a software >> interrupt source (e.g: timer, sysfs). This patch adds the generic >> infrastructure for

Re: [PATCH v1 1/1] iio: ltr501: Add light channel support

2015-05-05 Thread Daniel Baluta
> Signed-off-by: Kuppuswamy Sathyanarayanan > Reviewed-by: Daniel Baluta > --- > drivers/iio/light/ltr501.c | 71 > +- > 1 file changed, 64 insertions(+), 7 deletions(-) > > diff --git a/drivers/iio/light/ltr501.c b/drivers/iio/

Re: [PATCH v4 0/4] Add initial configfs support for IIO

2015-05-04 Thread Daniel Baluta
On 05/03/2015 10:22 PM, Lars-Peter Clausen wrote: On 05/03/2015 09:20 PM, Jonathan Cameron wrote: On 26/04/15 20:35, Jonathan Cameron wrote: On 20/04/15 15:02, Daniel Baluta wrote: This patchset introduces IIO software triggers, offers a way of configuring them via configfs and adds the IIO

[PATCH v5 1/4] iio: core: Introduce IIO software triggers

2015-05-04 Thread Daniel Baluta
kernel module is loaded. Software triggers can be created directly from drivers or from user space via configfs interface. Signed-off-by: Daniel Baluta --- drivers/iio/Kconfig | 8 +++ drivers/iio/Makefile | 1 + drivers/iio/industrialio-sw-trigger.c | 112

[PATCH v5 4/4] iio: Documentation: Add IIO configfs documentation

2015-05-04 Thread Daniel Baluta
Signed-off-by: Daniel Baluta --- Documentation/ABI/testing/configfs-iio | 26 ++ Documentation/iio/iio_configfs.txt | 63 ++ 2 files changed, 89 insertions(+) create mode 100644 Documentation/ABI/testing/configfs-iio create mode 100644

[PATCH v5 3/4] iio: trigger: Introduce IIO hrtimer based trigger

2015-05-04 Thread Daniel Baluta
based on an older version from Marten and Lars-Peter. Signed-off-by: Marten Svanfeldt Signed-off-by: Lars-Peter Clausen Signed-off-by: Daniel Baluta --- drivers/iio/trigger/Kconfig| 9 ++ drivers/iio/trigger/Makefile | 2 + drivers/iio/trigger/iio-trig-hrtimer.c | 201

[PATCH v5 0/4] Add initial configfs support for IIO

2015-05-04 Thread Daniel Baluta
* patch 4/4 - removed "Further work" chapter in iio_configfs.txt - added configfs-iio file in Documentation/ABI/testing Changes since v3: * addressed comments from Jonathan for previous version * https://lkml.org/lkml/2015/4/6/111 Dani

[PATCH v5 2/4] iio: core: Introduce IIO configfs support

2015-05-04 Thread Daniel Baluta
igger core: $ mkdir /config/iio/triggers/hrtimer-instance1 Signed-off-by: Daniel Baluta --- drivers/iio/Kconfig | 8 +++ drivers/iio/Makefile| 1 + drivers/iio/industrialio-configfs.c | 117 3 files changed, 126 insertions(+)

Re: [PATCH] iio: acpi: Add ACPI0008 Ambient Light Sensor

2015-04-30 Thread Daniel Baluta
Hi Gabriele, Please keep the version numbering from previous patches, I think this should be v8 :). On Wed, Apr 29, 2015 at 2:27 PM, Gabriele Mazzotta wrote: > Add basic implementation of the ACPI0008 Ambient Light Sensor driver. > This driver currently supports only the ALI property, yet is rea

Re: [PATCH v4 4/4] iio: Documentation: Add IIO configfs documentation

2015-04-26 Thread Daniel Baluta
On Sun, Apr 26, 2015 at 10:30 PM, Jonathan Cameron wrote: > On 20/04/15 15:02, Daniel Baluta wrote: >> Signed-off-by: Daniel Baluta > Probably need to start Documentation/ABI/testing/configfs-iio (or something > like that) > as well to document the ABI elements fully. Yes, t

Re: [PATCH v4 2/4] iio: core: Introduce IIO configfs support

2015-04-26 Thread Daniel Baluta
On Sun, Apr 26, 2015 at 10:26 PM, Jonathan Cameron wrote: > On 20/04/15 15:02, Daniel Baluta wrote: >> This creates an IIO configfs subystem named "iio", with a default "triggers" >> group. >> >> Triggers group is used for handling software trigge

Re: [PATCH v4 1/4] iio: core: Introduce IIO software triggers

2015-04-26 Thread Daniel Baluta
On Sun, Apr 26, 2015 at 10:21 PM, Jonathan Cameron wrote: > On 20/04/15 15:02, Daniel Baluta wrote: >> A software trigger associates an IIO device trigger with a software >> interrupt source (e.g: timer, sysfs). This patch adds the generic >> infrastructure for handl

Re: [PATCH 1/3] iio: magnetometer: Add support for MEMSIC MMC35240 sensor

2015-04-24 Thread Daniel Baluta
On Fri, Apr 24, 2015 at 7:00 PM, Daniel Baluta wrote: > On Sun, Apr 19, 2015 at 4:28 PM, Jonathan Cameron wrote: >> On 15/04/15 12:02, Daniel Baluta wrote: >>> Minimal implementation for MMC35240 3-axis magnetometer >>> sensor. It provides processed readings and p

[PATCH v2 1/3] iio: magnetometer: Add support for MEMSIC MMC35240 sensor

2015-04-24 Thread Daniel Baluta
Minimal implementation for MMC35240 3-axis magnetometer sensor. It provides processed readings and possiblity to change the sampling frequency. Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/Kconfig| 11 + drivers/iio/magnetometer/Makefile | 1 + drivers/iio/magnetometer

[PATCH v2 2/3] iio: magnetometer: mmc35240: Add PM sleep support

2015-04-24 Thread Daniel Baluta
We rely on regmap to save the state of the registers at suspend, and then we do an explicit sync at resume. Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/mmc35240.c | 35 +++ 1 file changed, 35 insertions(+) diff --git a/drivers/iio/magnetometer

Re: [PATCH 1/3] iio: magnetometer: Add support for MEMSIC MMC35240 sensor

2015-04-24 Thread Daniel Baluta
On Sun, Apr 19, 2015 at 4:28 PM, Jonathan Cameron wrote: > On 15/04/15 12:02, Daniel Baluta wrote: >> Minimal implementation for MMC35240 3-axis magnetometer >> sensor. It provides processed readings and possiblity to change >> the sampling frequency. >> >>

[PATCH v2 0/3] Introduce support for MMC35240 magnetic sensor

2015-04-24 Thread Daniel Baluta
Peter and Jonathan * https://lkml.org/lkml/2015/4/15/186 Daniel Baluta (3): iio: magnetometer: Add support for MEMSIC MMC35240 sensor iio: magnetometer: mmc35240: Add PM sleep support iio: magnetometer: Add ACPI support for MMC35240 drivers/iio/magnetometer/Kconfig| 11 + driver

[PATCH v2 3/3] iio: magnetometer: Add ACPI support for MMC35240

2015-04-24 Thread Daniel Baluta
We assume that ACPI device tables use MMC35240 to identify MEMSIC's 3 axis magnetic sensor. Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/mmc35240.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/iio/magnetometer/mmc35240.c b/drivers/iio/magnetometer/mmc35

[RESEND PATCH] configfs: init configfs module earlier at boot time

2015-04-24 Thread Daniel Baluta
We need this earlier in the boot process to allow various subsystems to use configfs (e.g Industrial IIO). Also, debugfs is at core_initcall level and configfs should be on the same level from infrastructure point of view. Suggested-by: Lars-Peter Clausen Signed-off-by: Daniel Baluta Reviewed

Re: [PATCH] iio: light: add support for ROHM BH1710/BH1715/BH1721/BH1750/BH1751 ambient light sensors

2015-04-23 Thread Daniel Baluta
On Tue, Apr 21, 2015 at 9:43 PM, Tomasz Duszynski wrote: > Add support for ROHM BH1710/BH1715/BH1721/BH1750/BH1751 ambient light > sensors. > > Signed-off-by: Tomasz Duszynski > --- > drivers/iio/light/Kconfig | 10 ++ > drivers/iio/light/Makefile | 1 + > drivers/iio/light/bh1750.c | 322 >

[PATCH v4 0/4] Add initial configfs support for IIO

2015-04-20 Thread Daniel Baluta
its own set of attributes. Changes since v3: * addressed comments from Jonathan for previous version * https://lkml.org/lkml/2015/4/6/111 Daniel Baluta (4): iio: core: Introduce IIO software triggers iio: core: Introduce IIO configfs support iio: trigger: Introduce IIO

[PATCH v4 2/4] iio: core: Introduce IIO configfs support

2015-04-20 Thread Daniel Baluta
igger core: $ mkdir /config/iio/triggers/hrtimer-instance1 Signed-off-by: Daniel Baluta --- drivers/iio/Kconfig | 8 +++ drivers/iio/Makefile| 1 + drivers/iio/industrialio-configfs.c | 117 3 files changed, 126 insertions(+)

[PATCH v4 4/4] iio: Documentation: Add IIO configfs documentation

2015-04-20 Thread Daniel Baluta
Signed-off-by: Daniel Baluta --- Documentation/iio/iio_configfs.txt | 67 ++ 1 file changed, 67 insertions(+) create mode 100644 Documentation/iio/iio_configfs.txt diff --git a/Documentation/iio/iio_configfs.txt b/Documentation/iio/iio_configfs.txt new file

[PATCH v4 1/4] iio: core: Introduce IIO software triggers

2015-04-20 Thread Daniel Baluta
kernel module is loaded. Software triggers can be created directly from drivers or from user space via configfs interface. Signed-off-by: Daniel Baluta --- drivers/iio/Kconfig | 8 +++ drivers/iio/Makefile | 1 + drivers/iio/industrialio-sw-trigger.c | 111

[PATCH v4 3/4] iio: trigger: Introduce IIO hrtimer based trigger

2015-04-20 Thread Daniel Baluta
based on an older version from Marten and Lars-Peter. Signed-off-by: Marten Svanfeldt Signed-off-by: Lars-Peter Clausen Signed-off-by: Daniel Baluta --- drivers/iio/trigger/Kconfig| 9 ++ drivers/iio/trigger/Makefile | 2 + drivers/iio/trigger/iio-trig-hrtimer.c | 201

Re: [PATCH v3 2/3] iio: trigger: Add support for highres timer trigger type

2015-04-15 Thread Daniel Baluta
On Sun, Apr 12, 2015 at 6:40 PM, Jonathan Cameron wrote: > On 10/04/15 10:02, Daniel Baluta wrote: >> On Thu, Apr 9, 2015 at 8:09 PM, Jonathan Cameron wrote: >>> On 06/04/15 15:18, Daniel Baluta wrote: >>>> This patch adds a new trigger type - the high resoluto

Re: [PATCH v3 1/3] iio: configfs: Add configfs support to IIO

2015-04-15 Thread Daniel Baluta
On Sun, Apr 12, 2015 at 6:55 PM, Jonathan Cameron wrote: > On 10/04/15 12:08, Daniel Baluta wrote: >> On Thu, Apr 9, 2015 at 8:15 PM, Jonathan Cameron wrote: >>> On 06/04/15 15:18, Daniel Baluta wrote: >>>> This module is the core of IIO configfs. It creates t

Re: [PATCH 1/3] iio: magnetometer: Add support for MEMSIC MMC35240 sensor

2015-04-15 Thread Daniel Baluta
; > possibility Ok. > > link to datasheet missing > Unfortunately the datasheet isn't public. >> Signed-off-by: Daniel Baluta >> --- >> drivers/iio/magnetometer/Kconfig| 11 + >> drivers/iio/magnetometer/Makefile | 1 + >> drivers/iio/ma

[PATCH 2/3] iio: magnetometer: mmc35240: Add PM sleep support

2015-04-15 Thread Daniel Baluta
We rely on regmap to save the state of the registers at suspend, and then we do an explicit sync at resume. Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/mmc35240.c | 35 +++ 1 file changed, 35 insertions(+) diff --git a/drivers/iio/magnetometer

[PATCH 0/3] Introduce support for MMC35240 magnetic sensor

2015-04-15 Thread Daniel Baluta
This adds support for Memsic's MMC35240 magnetometer. The sensor does not offer an interrupt line for data ready so for the moment we only expose raw readings via sysfs interface. This patchset also adds ACPI and Power Management support. Daniel Baluta (3): iio: magnetometer: Add suppor

[PATCH 3/3] iio: magnetometer: Add ACPI support for MMC35240

2015-04-15 Thread Daniel Baluta
We assume that ACPI device tables use MMC35240 to identify MEMSIC's 3 axis magnetic sensor. Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/mmc35240.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/iio/magnetometer/mmc35240.c b/drivers/iio/magnetometer/mmc35

[PATCH 1/3] iio: magnetometer: Add support for MEMSIC MMC35240 sensor

2015-04-15 Thread Daniel Baluta
Minimal implementation for MMC35240 3-axis magnetometer sensor. It provides processed readings and possiblity to change the sampling frequency. Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/Kconfig| 11 + drivers/iio/magnetometer/Makefile | 1 + drivers/iio/magnetometer

Re: [PATCH] iio: light: ltr501: Fix alignment to match open parenthesis

2015-04-09 Thread Daniel Baluta
On 04/09/2015 05:51 PM, Kuppuswamy, Sathyanarayanan wrote: Hi Daniel, You have asked me to include this patch in my LTR501 patch set. I have already sent few versions of my patch set with your patch. Do you want to submit it again separately? Hi Sathya, After Jonathan's comments on patch

[PATCH] iio: light: ltr501: Fix alignment to match open parenthesis

2015-04-09 Thread Daniel Baluta
This makes ltr501 code consistent with the coding style adopted for the new drivers added to IIO. We prepare the path for adding support for LTR559 chip. Reported by checkpatch.pl Signed-off-by: Daniel Baluta --- Changes since v1: * rebased on top of 1ca510b0ea6 ("iio: light: l

Re: [RFC PATCH 2/2] iio: light: Add support for LTR559 chip

2015-04-09 Thread Daniel Baluta
On 04/09/2015 04:39 PM, Jonathan Cameron wrote: On 31/03/15 11:37, Daniel Baluta wrote: This device is register compatible with LTR501, with a minor difference for ALS control register as showed below: ALS Control register for LTR501: 7 6 5 4 3 2 1 0

Re: [PATCH v3 1/3] iio: configfs: Add configfs support to IIO

2015-04-08 Thread Daniel Baluta
On Mon, Apr 6, 2015 at 5:18 PM, Daniel Baluta wrote: > This module is the core of IIO configfs. It creates the "iio" subsystem under > configfs mount point root, with one default group for "triggers". > > It offers basic interface for registering software trigge

[RESEND PATCH] configfs: init configfs module earlier at boot time

2015-04-07 Thread Daniel Baluta
We need this earlier in the boot process to allow various subsystems to use configfs (e.g Industrial IIO). Also, debugfs is at core_initcall level and configfs should be on the same level from infrastructure point of view. Suggested-by: Lars-Peter Clausen Signed-off-by: Daniel Baluta

Re: [PATCH] lguest: explicitly setup /dev/lguest private_data

2015-04-07 Thread Daniel Baluta
On Tue, Apr 7, 2015 at 11:18 AM, Tom Van Braeckel wrote: > The private_data member of the /dev/lguest device file is used to hold > the current struct lguest and needs to be set to NULL to signify that > no initialization has taken place. > > We explicitly set it to NULL to be independent of whate

[PATCH v3 1/3] iio: configfs: Add configfs support to IIO

2015-04-06 Thread Daniel Baluta
gger types. To add a new trigger type we must create a new kernel module which implements iio_configfs_trigger.h interface. See Documentation/iio/iio_configfs.txt for more details on how configfs support for IIO works. Signed-off-by: Daniel Baluta --- Changes since v2: * Fix build erro

[PATCH v3 2/3] iio: trigger: Add support for highres timer trigger type

2015-04-06 Thread Daniel Baluta
he trigger is the same as the dir name. Each trigger will have a "delay" attribute representing the delay between two successive IIO trigger_poll calls. Signed-off-by: Marten Svanfeldt Signed-off-by: Lars-Peter Clausen Signed-off-by: Daniel Baluta --- Changes since v2: * n

[PATCH v3 0/3] Add initial configfs support for IIO

2015-04-06 Thread Daniel Baluta
s Documentation Changes since last version are listed in each individual patch. Daniel Baluta (3): iio: configfs: Add configfs support to IIO iio: trigger: Add support for highres timer trigger type iio: Documentation: Add documentation for IIO configfs Documentation/iio/iio_configfs.txt

[PATCH v3 3/3] iio: Documentation: Add documentation for IIO configfs

2015-04-06 Thread Daniel Baluta
Signed-off-by: Daniel Baluta --- Changes since v2: * fix some whitespace issues reported by Paul Changes since v1: * addressed feedback for v1: * https://lkml.org/lkml/2015/3/25/648 * adapted to match the changes in patches 1 and 2 * fixed some

Re: [PATCH v2 1/3] iio: configfs: Add configfs support to IIO

2015-04-06 Thread Daniel Baluta
On Sat, Apr 4, 2015 at 9:26 PM, Paul Bolle wrote: > On Fri, 2015-04-03 at 18:57 +0300, Daniel Baluta wrote: >> --- a/drivers/iio/Kconfig >> +++ b/drivers/iio/Kconfig >> +config IIO_CONFIGFS >> + tristate "Enable IIO configuration via configfs" >

[PATCH v2 2/3] iio: trigger: Add support for highres timer trigger type

2015-04-03 Thread Daniel Baluta
he trigger is the same as the dir name. Each trigger will have a "delay" attribute representing the delay between two successive IIO trigger_poll calls. Signed-off-by: Marten Svanfeldt Signed-off-by: Lars-Peter Clausen Signed-off-by: Daniel Baluta --- Changes since v2: * replace

[PATCH v2 1/3] iio: configfs: Add configfs support to IIO

2015-04-03 Thread Daniel Baluta
gger types. To add a new trigger type we must create a new kernel module which implements iio_configfs_trigger.h interface. See Documentation/iio/iio_configfs.txt for more details on how configfs support for IIO works. Signed-off-by: Daniel Baluta --- Changes since v1: * addressed f

[PATCH v2 3/3] iio: Documentation: Add documentation for IIO configfs

2015-04-03 Thread Daniel Baluta
Signed-off-by: Daniel Baluta --- Changes since v1: * addressed feedback for v1: * https://lkml.org/lkml/2015/3/25/648 * adapted to match the changes in patches 1 and 2 * fixed some typos and clarified further work Documentation/iio/iio_configfs.txt | 82

[PATCH v2 0/3] Add initial configfs support for IIO

2015-04-03 Thread Daniel Baluta
s Documentation Changes since v1 are listed in each individual patch. Daniel Baluta (3): iio: configfs: Add configfs support to IIO iio: trigger: Add support for highres timer trigger type iio: Documentation: Add documentation for IIO configfs Documentation/iio/iio_configfs.txt | 82

Re: [RESEND PATCH] configfs: init configfs module earlier at boot time

2015-04-02 Thread Daniel Baluta
On Wed, Mar 18, 2015 at 9:56 PM, Daniel Baluta wrote: > We need this earlier in the boot process to allow various subsystems > to use configfs (e.g Industrial IIO). > > Also, debugfs is at core_initcall level and configfs should be on > the same level from infrastructur

Re: [PATCH 3/3] iio: Documentation: Add initial documentaton for IIO

2015-03-31 Thread Daniel Baluta
On Sat, Mar 28, 2015 at 1:53 PM, Jonathan Cameron wrote: > On 25/03/15 19:28, Daniel Baluta wrote: >> On Wed, Mar 25, 2015 at 7:22 PM, Peter Meerwald wrote: >>> On Wed, 25 Mar 2015, Daniel Baluta wrote: >>> >>>> This file wants to be a starting point docu

Re: [PATCH 1/3] iio: configfs: Add configfs support to IIO

2015-03-31 Thread Daniel Baluta
On Sat, Mar 28, 2015 at 1:50 PM, Jonathan Cameron wrote: > On 27/03/15 17:17, Lars-Peter Clausen wrote: >> On 03/25/2015 06:00 PM, Daniel Baluta wrote: >>> This creates an IIO configfs subsystem named "iio", which has one default >>> group named "triggers

[RFC PATCH 0/2] Add support for Lite On LTR559 sensor

2015-03-31 Thread Daniel Baluta
First patch does some cleanups in order to make alignment style consistent with the rest of IIO drivers. Then second patch adds support for Lite On LTR559 ambient light and proximity sensor. This is a RFC because the code is compile tested only. The chip should arrive in a few days. Daniel

[RFC PATCH 2/2] iio: light: Add support for LTR559 chip

2015-03-31 Thread Daniel Baluta
difference by introducing ltr501_chip_info. Datasheet for LTR559 is at: http://optoelectronics.liteon.com/upload/download/DS86-2013-0003/S_110_LTR-559ALS-01_DS_V1.pdf Signed-off-by: Daniel Baluta --- drivers/iio/light/ltr501.c | 196 + 1 file changed, 163

[RFC PATCH 1/2] iio: light: ltr501: Fix alignment to match open parenthesis

2015-03-31 Thread Daniel Baluta
This makes ltr501 code consistent with the coding style adopted for the new drivers added to IIO. We prepare the path for adding support for LTR559 chip. Reported by checkpatch.pl Signed-off-by: Daniel Baluta --- drivers/iio/light/ltr501.c | 46 +- 1

[RFC PATCH 1/2] iio: light: ltr501: Fix alignment to match open parenthesis

2015-03-31 Thread Daniel Baluta
This makes ltr501 code consistent with the coding style adopted for the new drivers added to IIO. We prepare the path for adding support for LTR559 chip. Reported by checkpatch.pl Signed-off-by: Daniel Baluta --- drivers/iio/light/ltr501.c | 46 +- 1

[RFC PATCH 0/2] Add support for Lite On LTR559 sensor

2015-03-31 Thread Daniel Baluta
First patch does some cleanups in order to make alignment style consistent with the rest of IIO drivers. Then second patch adds support for Lite On LTR559 ambient light and proximity sensor. This is a RFC because the code is compile tested only. The chip should arrive in a few days. Daniel

[RFC PATCH 2/2] iio: light: Add support for LTR559 chip

2015-03-31 Thread Daniel Baluta
difference by introducing ltr501_chip_info. Datasheet for LTR559 is at: http://optoelectronics.liteon.com/upload/download/DS86-2013-0003/S_110_LTR-559ALS-01_DS_V1.pdf Signed-off-by: Daniel Baluta --- drivers/iio/light/ltr501.c | 196 + 1 file changed, 163

Re: [PATCH] tools: iio: generic_buffer: Fix generic scale extraction

2015-03-27 Thread Daniel Baluta
, the extracted generic name > is "in" (when it should be "in_accel"). This is used in generic_buffer > to generate scale and offset paths (in_accel_scale). > > Consider the in_ or out_ prefix when extracting the generic name > from the full name. > >

Re: [PATCH 1/3] iio: configfs: Add configfs support to IIO

2015-03-26 Thread Daniel Baluta
On 03/25/2015 10:14 PM, Paul Bolle wrote: A license nit. On Wed, 2015-03-25 at 19:00 +0200, Daniel Baluta wrote: --- /dev/null +++ b/drivers/iio/industrialio-configfs.c + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General

Re: [PATCH 3/3] iio: Documentation: Add initial documentaton for IIO

2015-03-25 Thread Daniel Baluta
On Wed, Mar 25, 2015 at 7:22 PM, Peter Meerwald wrote: > On Wed, 25 Mar 2015, Daniel Baluta wrote: > >> This file wants to be a starting point document for anyone wanting >> to use IIO configfs support or adding new IIO configfs functionality. > > typos below; I'm jus

[PATCH 2/3] iio: trigger: Add support for highres timer trigger

2015-03-25 Thread Daniel Baluta
This patch adds an IIO trigger driver which uses a high resolution timer to provide a frequency based trigger. Signed-off-by: Marten Svanfeldt Signed-off-by: Lars-Peter Clausen Signed-off-by: Daniel Baluta --- drivers/iio/industrialio-configfs.c | 4 + drivers/iio/trigger/Kconfig

[PATCH 0/3] Add configfs support for software triggers in IIO

2015-03-25 Thread Daniel Baluta
l" trigger type - hrtimer. * patch 3 - adds Documentation Daniel Baluta (3): iio: configfs: Add configfs support to IIO iio: trigger: Add support for highres timer trigger iio: Documentation: Add initial documentaton for IIO Documentation/iio/iio_configfs.txt | 74

[PATCH 1/3] iio: configfs: Add configfs support to IIO

2015-03-25 Thread Daniel Baluta
configfs core. See Documentation/iio/iio_configfs.txt for more details on how configfs support for IIO works. Signed-off-by: Daniel Baluta --- drivers/iio/Kconfig | 8 + drivers/iio/Makefile | 1 + drivers/iio/industrialio-c

[PATCH 3/3] iio: Documentation: Add initial documentaton for IIO

2015-03-25 Thread Daniel Baluta
This file wants to be a starting point document for anyone wanting to use IIO configfs support or adding new IIO configfs functionality. Signed-off-by: Daniel Baluta --- Documentation/iio/iio_configfs.txt | 74 ++ 1 file changed, 74 insertions(+) create mode

Re: [PATCH] IIO: Adds ACPI support for ST gyroscopes

2015-03-24 Thread Daniel Baluta
On Tue, Mar 24, 2015 at 5:22 PM, Lars-Peter Clausen wrote: > Add Alexandre and linux-gpio to Cc. > > > On 03/24/2015 04:06 PM, Mika Westerberg wrote: >> >> On Tue, Mar 24, 2015 at 02:57:49PM +0100, Linus Walleij wrote: >>> >>> On Tue, Mar 24, 2015 at 2:38 PM, Lars-Peter Clausen >>> wrote: >>

Re: [PATCH] IIO: Adds ACPI support for ST gyroscopes

2015-03-24 Thread Daniel Baluta
On Mon, Mar 23, 2015 at 5:18 PM, Mika Westerberg wrote: > On Mon, Mar 23, 2015 at 03:40:24PM +0200, Robert Dolca wrote: >> Signed-off-by: Robert Dolca >> --- >> drivers/iio/common/st_sensors/st_sensors_i2c.c | 35 >> ++ >> drivers/iio/gyro/st_gyro_i2c.c |

[RESEND PATCH] configfs: init configfs module earlier at boot time

2015-03-18 Thread Daniel Baluta
We need this earlier in the boot process to allow various subsystems to use configfs (e.g Industrial IIO). Also, debugfs is at core_initcall level and configfs should be on the same level from infrastructure point of view. Suggested-by: Lars-Peter Clausen Signed-off-by: Daniel Baluta --- First

[PATCH] configfs: init configfs module earlier at boot time

2015-03-18 Thread Daniel Baluta
We need this earlier in the boot process to allow various subsystems to use configfs (e.g Industrial IIO). Also, debugfs is at core_initcall level and configfs should be on the same level from infrastructure point of view. Suggested-by: Lars-Peter Clausen Signed-off-by: Daniel Baluta --- fs

Re: [PATCH] staging: iio: trigger: Use standard attr for sampling frequency

2015-03-18 Thread Daniel Baluta
On Wed, Mar 18, 2015 at 6:47 PM, Lars-Peter Clausen wrote: > On 03/18/2015 04:04 PM, Daniel Baluta wrote: >> >> On Sat, Mar 14, 2015 at 7:21 PM, Jonathan Cameron >> wrote: >>> >>> On 12/03/15 12:48, Daniel Baluta wrote: >>>> >>>> O

Re: [PATCH] staging: iio: trigger: Use standard attr for sampling frequency

2015-03-18 Thread Daniel Baluta
On Sat, Mar 14, 2015 at 7:21 PM, Jonathan Cameron wrote: > On 12/03/15 12:48, Daniel Baluta wrote: >> On Thu, Mar 12, 2015 at 10:40 AM, Lars-Peter Clausen wrote: >>> On 03/12/2015 09:16 AM, Octavian Purdila wrote: >>>> >>>> On Wed, Mar 11,

Re: [PATCH] staging: iio: trigger: Use standard attr for sampling frequency

2015-03-15 Thread Daniel Baluta
On Sun, Mar 15, 2015 at 10:49 PM, Jonathan Cameron wrote: > On 15/03/15 20:34, Daniel Baluta wrote: >> On Sat, Mar 14, 2015 at 7:21 PM, Jonathan Cameron wrote: >>> On 12/03/15 12:48, Daniel Baluta wrote: >>>> On Thu, Mar 12, 2015 at 10:40 AM, Lars-Peter Clausen &

Re: [PATCH] staging: iio: trigger: Use standard attr for sampling frequency

2015-03-15 Thread Daniel Baluta
On Sat, Mar 14, 2015 at 7:21 PM, Jonathan Cameron wrote: > On 12/03/15 12:48, Daniel Baluta wrote: >> On Thu, Mar 12, 2015 at 10:40 AM, Lars-Peter Clausen wrote: >>> On 03/12/2015 09:16 AM, Octavian Purdila wrote: >>>> >>>> On Wed, Mar 11,

[PATCH v3] iio: light: Add support for Capella CM3323 color sensor

2015-03-14 Thread Daniel Baluta
160 ms | 0.045 320 ms | 0.0225 640 ms | 0.01125 1280 ms | 0.005625 Signed-off-by: Daniel Baluta --- Changes since v2: * use iio_device_register instead of devm_* variant, in order to better control call order at remove * introduce cm3323_disable and call

Re: [PATCH] staging: iio: trigger: Use standard attr for sampling frequency

2015-03-12 Thread Daniel Baluta
On Thu, Mar 12, 2015 at 10:40 AM, Lars-Peter Clausen wrote: > On 03/12/2015 09:16 AM, Octavian Purdila wrote: >> >> On Wed, Mar 11, 2015 at 6:36 PM, Daniel Baluta >> wrote: >>> >>> >>> As written in Documentation/ABI/testing/sysfs-bus-iio the tri

[PATCH] staging: iio: trigger: Use standard attr for sampling frequency

2015-03-11 Thread Daniel Baluta
As written in Documentation/ABI/testing/sysfs-bus-iio the trigger attribute for sampling frequency should be sampling_frequency. Fix this for iio-trig-periodic-rtc module in order to prepare it for moving out of staging. Signed-off-by: Daniel Baluta --- Jonathan, this module is very useful for

Re: [PATCH] iio: light: Add support for Capella CM3323 color/light sensor

2015-03-09 Thread Daniel Baluta
On Mon, Mar 9, 2015 at 5:45 PM, Jonathan Cameron wrote: > On 02/03/15 19:03, Kevin Tsai wrote: >> Hi Daniel, >> >> Ambient light sensor is trying to match the brightness sensitivity of human >> visual system. Please see the following links: >> http://en.wikipedia.org/wiki/Color_vision#mediaviewe

Re: [PATCH] iio: pressure: add support for MS5611 pressure and temperature sensor

2015-03-08 Thread Daniel Baluta
Hi Tomasz, On Sun, Mar 8, 2015 at 7:29 PM, Tomasz Duszynski wrote: > Add support for Measurement Specialities MS5611 pressure > and temperature sensor. > > Signed-off-by: Tomasz Duszynski > +++ b/drivers/iio/pressure/ms5611_i2c.c > @@ -0,0 +1,131 @@ > +/* > + * MS5611 pressure and temperature

Re: [PATCH] nits: fix several coding style warnings

2015-03-08 Thread Daniel Baluta
On Sun, Mar 8, 2015 at 2:39 PM, Greg KH wrote: > On Sun, Mar 08, 2015 at 12:53:17PM +0200, Ioana Antoche wrote: >> Fix checkpatch.pl warnings such as: >> * missing blank line after declarations >> * line over 80 characters >> >> Signed-off-by: Ioana Antoche > > The subject: of "nits" doesn't real

Re: [PATCH] regmap: regcache-rbtree: Fix present bitmap resize

2015-03-07 Thread Daniel Baluta
gt; reported as not present and vice versa. > > Fix this by shifting left rather than right. > > Fixes: 472fdec7380c("regmap: rbtree: Reduce number of nodes, take 2") > Reported-by: Daniel Baluta > Signed-off-by: Lars-Peter Clausen Thanks Lars! I confirm that t

Re: Using regmap_update_bits to update a write only register

2015-03-06 Thread Daniel Baluta
On Fri, Mar 6, 2015 at 7:36 PM, Lars-Peter Clausen wrote: > On 03/06/2015 06:26 PM, Daniel Baluta wrote: > [...] >> >> I can reproduce the problem with: >> >> static struct reg_default xxx_reg_defaults[] = { >> { XXX_REG_CTRL0, 0x00 }

Re: Using regmap_update_bits to update a write only register

2015-03-06 Thread Daniel Baluta
On Fri, Mar 6, 2015 at 3:27 PM, Daniel Baluta wrote: > On Fri, Mar 6, 2015 at 2:45 PM, Lars-Peter Clausen wrote: >> On 03/06/2015 12:21 PM, Mark Brown wrote: >>> >>> On Thu, Mar 05, 2015 at 08:14:14PM +0200, Daniel Baluta wrote: >>>> >>&

Re: Using regmap_update_bits to update a write only register

2015-03-06 Thread Daniel Baluta
On Fri, Mar 6, 2015 at 2:45 PM, Lars-Peter Clausen wrote: > On 03/06/2015 12:21 PM, Mark Brown wrote: >> >> On Thu, Mar 05, 2015 at 08:14:14PM +0200, Daniel Baluta wrote: >>> >>> On Mar 5, 2015 7:54 PM, "Mark Brown" wrote: >> >> >>>

Using regmap_update_bits to update a write only register

2015-03-05 Thread Daniel Baluta
Hi Mark, Is it possible to use regmap_update_bits to update the values of some bits in a write only register? I was hoping that by filling the .reg_defaults field of regmap_config the regmap_update_bits function will not try to read the register from hardware. Instead I think first call of regma

<    3   4   5   6   7   8   9   10   >