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 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 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 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 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

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

[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 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 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 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

[RFC PATCH] iio: ak8975: Make sure chipset is always initialized

2014-12-18 Thread Daniel Baluta
8:14: warning: ‘chipset’ may be used uninitialized in this function [-Wmaybe-uninitialized] data->def = &ak_def_array[chipset]; Reported-by: Octavian Purdila Signed-off-by: Daniel Baluta --- This is a RFC because while I'm pretty sure that chipset should be initialized wit

Re: [RFC PATCH] iio: ak8975: Make sure chipset is always initialized

2014-12-19 Thread Daniel Baluta
On Sat, Dec 20, 2014 at 12:16 AM, Hartmut Knaack wrote: > Daniel Baluta schrieb am 18.12.2014 um 18:16: >> When using ACPI, if acpi_match_device fails then chipset enum will be >> uninitialized and &ak_def_array[chipset] will point to some bad address. >> >> This

Re: [RFC PATCH] iio: ak8975: Make sure chipset is always initialized

2014-12-20 Thread Daniel Baluta
-12-20 at 13:26 -0800, Srinivas Pandruvada wrote: >> On Sat, 2014-12-20 at 00:25 +0200, Daniel Baluta wrote: >> > On Sat, Dec 20, 2014 at 12:16 AM, Hartmut Knaack wrote: >> > > Daniel Baluta schrieb am 18.12.2014 um 18:16: >> > >> When using ACPI, i

Re: [PATCH 0/8] Adds Intel FieldsPeak NFC solution driver

2015-02-24 Thread Daniel Baluta
On Tue, Feb 24, 2015 at 6:14 PM, Greg Rose wrote: > I'm excited - what's NFC? Please don't do top posting. Other than that: http://en.wikipedia.org/wiki/Near_field_communication Daniel. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majo

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: [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] 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] 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

[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] 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

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] 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] 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 |

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: >>

[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

[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

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

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

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: >> >> >>>

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 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: [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-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

[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

[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 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-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,

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 &

[RFC PATCH] iio: Export userspace IIO headers

2015-02-09 Thread Daniel Baluta
is no need for nasty tricks to compile userspace programs (e.g iio_event_monitor). Just installing the kernel headers with make headers_install command does the job. [1] http://lwn.net/Articles/507794/ Signed-off-by: Daniel Baluta --- I am not sure if this is the right thing to do. I am still

Re: [RFC PATCH] iio: Export userspace IIO headers

2015-02-10 Thread Daniel Baluta
On Mon, Feb 9, 2015 at 7:05 PM, Lars-Peter Clausen wrote: > On 02/09/2015 05:49 PM, Daniel Baluta wrote: >> >> After UAPI header file split [1] all user-kernel interfaces were >> placed under include/uapi/. >> >> This patch moves IIO user specific API from: >&g

[PATCH v2] iio: Export userspace IIO headers

2015-02-10 Thread Daniel Baluta
ed for nasty tricks to compile userspace programs (e.g iio_event_monitor). Just installing the kernel headers with make headers_install command does the job. [1] http://lwn.net/Articles/507794/ Signed-off-by: Daniel Baluta --- Changes since v1: * keep enum iio_event_info and IIO_VAL_* con

Re: [PATCH v2] iio: imu: kmx61: Drop odr_bits from kmx61_samp_freq_table

2015-02-02 Thread Daniel Baluta
On Sun, Feb 1, 2015 at 12:11 PM, Jonathan Cameron wrote: > On 05/01/15 23:00, Hartmut Knaack wrote: >> Daniel Baluta schrieb am 05.01.2015 um 10:21: >>> odr_bits values are between 0 and 11, so we can use the index >>> in kmx61_samp_freq_table instead of odr_bits struc

Re: [PATCH v4 3/6] iio: imu: kmx61: Add PM runtime support

2014-12-15 Thread Daniel Baluta
On Mon, Dec 15, 2014 at 12:55 AM, Hartmut Knaack wrote: > Daniel Baluta schrieb am 03.12.2014 um 14:31: >> By default both sensors are ACTIVE, in this way the driver >> will work even if CONFIG_PM_RUNTIME is not selected. >> > Since kmx61_set_power_state() can return err

Re: [PATCH v4 6/6] iio: imu: kmx61: Add support for any motion trigger

2014-12-16 Thread Daniel Baluta
On Tue, Dec 16, 2014 at 1:19 AM, Hartmut Knaack wrote: > Daniel Baluta schrieb am 03.12.2014 um 14:31: >> We use WUFE (Wake Up from Sleep Engine) and BTSE (Back to Sleep Engine) >> to detect general motion input. >> > A few recommendations, issues and questions inline.

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

2015-01-22 Thread Daniel Baluta
Minimal implementation providing raw light intensity and illuminance readings. For illuminance user can compute lux values using raw readings and scale. This driver also supports CM3323E sensor chip. Cc: Kevin Tsai Signed-off-by: Daniel Baluta --- drivers/iio/light/Kconfig | 10 ++ drivers

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

2015-03-02 Thread Daniel Baluta
On Sun, Jan 25, 2015 at 12:50 PM, Daniel Baluta wrote: > On Sun, Jan 25, 2015 at 12:27 PM, Jonathan Cameron wrote: >> On 22/01/15 10:10, Daniel Baluta wrote: >>> Minimal implementation providing raw light intensity and illuminance >>> readings. For illuminance user c

Re: [PATCH iio] iio: imu: kmx61: kmx61_set_wake_up_odr() can be static

2014-12-12 Thread Daniel Baluta
On Fri, Dec 12, 2014 at 6:28 PM, kbuild test robot wrote: > drivers/iio/imu/kmx61.c:422:5: sparse: symbol 'kmx61_set_wake_up_odr' was not > declared. Should it be static? > > Signed-off-by: Fengguang Wu Reviewed-by: Daniel Baluta > --- > kmx61.c |2 +- &g

Re: [PATCH v4 1/6] iio: imu: Add support for Kionix KMX61 sensor

2014-12-15 Thread Daniel Baluta
On Mon, Dec 15, 2014 at 12:43 AM, Hartmut Knaack wrote: > Daniel Baluta schrieb am 03.12.2014 um 14:31: >> Minimal implementation for KMX61 6-axis accelerometer/magnetometer. It >> exports >> raw accel/magn readings together with scale and sampling frequency. >>

[RFC PATCH 2/3] iio: dummy: Convert IIO dummy to configfs

2016-04-20 Thread Daniel Baluta
We register a new device type named "dummy", this will create a configfs entry under: * /config/iio/devices/dummy. Creating dummy devices is now as simple as: $ mkdir /config/iio/devices/dummy/my_dummy_device Signed-off-by: Daniel Baluta --- drivers/iio/dummy/iio_simple_du

[RFC PATCH 3/3] Documentation: iio: Add IIO software devices docs

2016-04-20 Thread Daniel Baluta
Signed-off-by: Daniel Baluta --- Documentation/ABI/testing/configfs-iio | 13 + 1 file changed, 13 insertions(+) diff --git a/Documentation/ABI/testing/configfs-iio b/Documentation/ABI/testing/configfs-iio index 2483756..84b6bd1 100644 --- a/Documentation/ABI/testing/configfs-iio

[RFC PATCH 0/3] Introduce support for creating IIO devices via configfs

2016-04-20 Thread Daniel Baluta
C in order to see if the interface is acceptable. We also need a way to create IIO devices with configurable number of channels. Patch 3 introduces configfs entries documentation for easier review. Daniel Baluta (3): iio: Add support for creating IIO devices via configfs iio: dummy: Convert I

Re: [RFC PATCH 3/3] Documentation: iio: Add IIO software devices docs

2016-04-20 Thread Daniel Baluta
On Wed, Apr 20, 2016 at 6:44 PM, Lars-Peter Clausen wrote: > On 04/20/2016 05:45 PM, Daniel Baluta wrote: > >> + >> +What:/config/iio/triggers/dummy > > s/triggers/devices :D, will fix in v2. Obviously, one problem of this RFC is that we have a lot of du

[RFC PATCH 1/3] iio: Add support for creating IIO devices via configfs

2016-04-20 Thread Daniel Baluta
This is similar with support for creating triggers via configfs. Devices will be hosted under: * /config/iio/devices We allow users to register "device types" under: * /config/iio/devices// Signed-off-by: Daniel Baluta --- drivers/iio/Kconfig | 9 +

Re: [PATCH] iio: add driver for Microchip MCP414X/416X/424X/426X

2016-03-18 Thread Daniel Baluta
On Wed, Mar 16, 2016 at 6:25 PM, Slawomir Stepien wrote: > On Mar 16, 2016 13:30, Peter Meerwald-Stadler wrote: >> On Wed, 16 Mar 2016, Slawomir Stepien wrote: >> >> > The following functionalities are supported: >> > - write, read from volatile and non volatile memory >> > - increase and decrea

[PATCH] efi: Introduce EFI bootloader control driver

2016-03-19 Thread Daniel Baluta
hamed Abbas Signed-off-by: Constantin Musca Signed-off-by: Daniel Baluta --- drivers/firmware/efi/Kconfig | 11 ++ drivers/firmware/efi/Makefile | 1 + drivers/firmware/efi/efi-bc.c | 251 ++ 3 files changed, 263 insertions(+) create mode 100644 dr

[PATCH v2] efi: Introduce EFI bootloader control driver

2016-03-19 Thread Daniel Baluta
hamed Abbas Signed-off-by: Constantin Musca Signed-off-by: Daniel Baluta --- Changes since v1: * updated Makefile after changing source name from efibc.c -> efi-bc.c to comply with naming rules in drivers/firmware/efi/ drivers/firmware/efi/Kconfig | 11 ++ drivers/firm

Re: [PATCH] iio: imu: Add initial support for Bosch BMI160

2016-04-05 Thread Daniel Baluta
On Fri, Apr 1, 2016 at 5:28 PM, Peter Meerwald-Stadler wrote: > >> BMI160 is an Inertial Measurement Unit (IMU) which provides acceleration >> and angular rate measurement. It also offers a secondary I2C interface >> for connecting a magnetometer sensor (usually BMM160). >> >> Current driver offer

Re: [PATCH] iio: imu: Add initial support for Bosch BMI160

2016-04-05 Thread Daniel Baluta
On Sun, Apr 3, 2016 at 11:53 AM, Jonathan Cameron wrote: > On 01/04/16 13:31, Daniel Baluta wrote: >> BMI160 is an Inertial Measurement Unit (IMU) which provides acceleration >> and angular rate measurement. It also offers a secondary I2C interface >> for connecting a magneto

[PATCH v2] iio: imu: Add initial support for Bosch BMI160

2016-04-05 Thread Daniel Baluta
interface using an external trigger (e.g. hrtimer). Data is retrieved from IMU via I2C or SPI interface. Datasheet is at: http://www.mouser.com/ds/2/783/BST-BMI160-DS000-07-786474.pdf Signed-off-by: Daniel Baluta --- Changes since v1: * addressed comments from Jonathan and Peter

Re: [PATCH 1/3] iio: core: Add devm_ APIs for iio_channel_{get,release}

2016-04-06 Thread Daniel Baluta
On Wed, Apr 6, 2016 at 1:31 PM, Laxman Dewangan wrote: > Some of kernel driver uses the IIO framework to get the sensor > value via ADC or IIO HW driver. The client driver get iio channel > by iio_channel_get() and release it by calling iio_channel_release(). > > Add resource managed version (devm

[PATCH v3] iio: imu: Add initial support for Bosch BMI160

2016-04-06 Thread Daniel Baluta
interface using an external trigger (e.g. hrtimer). Data is retrieved from IMU via I2C or SPI interface. Datasheet is at: http://www.mouser.com/ds/2/783/BST-BMI160-DS000-07-786474.pdf Signed-off-by: Daniel Baluta --- Changes since v2: * include to fix compile errors reported by

Re: [PATCH v6 20/24] iio: imu: inv_mpu6050: change the i2c gate to be mux-locked

2016-04-18 Thread Daniel Baluta
//patchwork.ozlabs.org/patch/584776/ authored by >> Adriana Reus and submitted by >> Daniel Baluta >> >> --8<-- >> iio: imu: inv_mpu6050: Fix deadlock between i2c adapter lock and mpu lock >> >> This deadlock occurs if the accel/gyr

Re: [RFC PATCH 0/3] Introduce support for creating IIO devices via configfs

2016-04-25 Thread Daniel Baluta
On Sun, Apr 24, 2016 at 2:28 PM, Jonathan Cameron wrote: > On 20/04/16 16:45, Daniel Baluta wrote: >> For testing purposes is nice to have a quick way of creating IIO devices. >> This patch series introduces support for creating IIO devices via configs >> (patch 1), allow

[PATCH v2 1/3] iio: Add support for creating IIO devices via configfs

2016-04-25 Thread Daniel Baluta
This is similar with support for creating triggers via configfs. Devices will be hosted under: * /config/iio/devices We allow users to register "device types" under: * /config/iio/devices// Signed-off-by: Daniel Baluta --- drivers/iio/Kconfig | 8 +

[PATCH v2 0/3] Introduce support for creating IIO devices via configfs

2016-04-25 Thread Daniel Baluta
patch 1) * make iio_simple_dummy depend on SW_DEVICE config option in order to avoid compilation errors reported by kbuild robot. Daniel Baluta (3): iio: Add support for creating IIO devices via configfs iio: dummy: Convert IIO dummy to configfs Documentation: iio: Add II

[PATCH v2 2/3] iio: dummy: Convert IIO dummy to configfs

2016-04-25 Thread Daniel Baluta
We register a new device type named "dummy", this will create a configfs entry under: * /config/iio/devices/dummy. Creating dummy devices is now as simple as: $ mkdir /config/iio/devices/dummy/my_dummy_device Signed-off-by: Daniel Baluta --- drivers/iio/dummy/Kconfig

[PATCH v2 3/3] Documentation: iio: Add IIO software devices docs

2016-04-25 Thread Daniel Baluta
Signed-off-by: Daniel Baluta --- Documentation/ABI/testing/configfs-iio | 13 + 1 file changed, 13 insertions(+) diff --git a/Documentation/ABI/testing/configfs-iio b/Documentation/ABI/testing/configfs-iio index 2483756..aebda53 100644 --- a/Documentation/ABI/testing/configfs-iio

[RFT PATCH] iio: magn: Add support for BMM150 magnetometer

2016-04-26 Thread Daniel Baluta
BMM150 is register compatible with magnetometer part of BMC156. Datasheet is at: http://www.mouser.com/ds/2/783/BST-BMM150-DS001-01-786480.pdf Signed-off-by: Daniel Baluta --- Lucas let me know if it works for you. I don't have yet the BMM150 evaluation board. It should be available i

Re: [PATCH] iio: tmp006: Set correct iio name

2016-04-26 Thread Daniel Baluta
On Tue, Apr 26, 2016 at 4:14 PM, Yong Li wrote: > I am thinking if there is any application is using this incorrect > name, the application should be fix too The rule is: "Don't break the userspace ABI". So, if we got this wrong from the beginning we are stuck with this name. The only thing that

Re: [PATCH] iio: max5487: Add support for Maxim digital potentiometers

2016-04-01 Thread Daniel Baluta
> .wipers and .max_pos need not be in max5487_cfg, they are common. > .wipers isn't even used. Which means that if you like, you can > use the ohms reading as the driver_data directly instead of going > via the MAX548x enumeration, see below. Or is there some reason > not doing so? You make a good

Re: [PATCH] iio: max5487: Add support for Maxim digital potentiometers

2016-04-01 Thread Daniel Baluta
On Fri, Mar 25, 2016 at 12:20 PM, Peter Rosin wrote: > Hi again, > > Cristina Moraru wrote: >> Add implementation for Maxim MAX5487, MAX5488, MAX5489 >> digital potentiometers. >> >> Signed-off-by: Cristina Moraru >> CC: Daniel Baluta > > Some m

[PATCH] iio: imu: Add initial support for Bosch BMI160

2016-04-01 Thread Daniel Baluta
interface using an external trigger (e.g. hrtimer). Data is retrieved from IMU via I2C or SPI interface. Datasheet is at: http://www.mouser.com/ds/2/783/BST-BMI160-DS000-07-786474.pdf Signed-off-by: Daniel Baluta --- drivers/iio/imu/Kconfig | 2 + drivers/iio/imu/Makefile

Re: [PATCH v10 1/5] configfs: Allow dynamic group creation

2015-11-06 Thread Daniel Baluta
On Fri, Nov 6, 2015 at 9:50 AM, Christoph Hellwig wrote: > Is this going into 4.4 through the iio tree? If not is there any chance > to get it in through some other tree? While we're not past the merge > window is trivial new functionality that doesn't change code, and I'd like to > move existin

Re: [PATCH] Doc: Docbook/iio: Fix typo in iio.tmpl

2015-11-20 Thread Daniel Baluta
On 11/20/2015 05:31 PM, Masanari Iida wrote: This patch fix a spelling typo in iio.tmpl. Signed-off-by: Masanari Iida Acked-by: Daniel Baluta --- Documentation/DocBook/iio.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/DocBook/iio.tmpl b

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

2015-06-30 Thread Daniel Baluta
On Mon, Jun 29, 2015 at 10:17 PM, Hartmut Knaack wrote: > Daniel Baluta schrieb am 29.06.2015 um 09:52: >> On Mon, Jun 29, 2015 at 2:07 AM, Hartmut Knaack wrote: >>> Daniel Baluta schrieb am 24.04.2015 um 17:58: >>>> Minimal implementation for MMC35240 3-axi

Re: [PATCH 1/2] iio: mma8452: add support for 3 more accelerometer chips

2015-06-30 Thread Daniel Baluta
On Tue, Jun 30, 2015 at 2:26 PM, Martin Kepplinger wrote: > The one that supports the existing event interrupt settings, uses it. The > others use their motion detection interrupts. > > This is tested on the MMA8653FC. Would be nice to explicitly add here the names of the new supported chips, tog

Re: [RFC 1/4] iio: ina2xx: add direct IO support for TI INA2xx Power Monitors

2015-11-11 Thread Daniel Baluta
On Tue, Nov 10, 2015 at 6:07 PM, Marc Titinger wrote: > Basic support or direct IO raw read, with averaging attribute. > Values are RAW, INT_PLUS_MICRO (Volt/Ampere/Watt). > > IIO context has 1 devices: Is this from libiio right? Perhaps you should specify this: "libiio context has 1 devices" >

Re: [RFC 2/4] iio: ina2xx: add SAMP_FREQ attribute.

2015-11-11 Thread Daniel Baluta
On Tue, Nov 10, 2015 at 6:07 PM, Marc Titinger wrote: > Signed-off-by: Marc Titinger I'm in favor of small incremental patches, anyhow since this is the initial submission I can't see why this patch isn't squashed in the previous one? > --- > drivers/iio/adc/ina2xx-iio.c | 51 > ++

[PATCH v7 3/4] arm64: dts: imx8mq: Add SAI2 node

2019-03-19 Thread Daniel Baluta
SAI2 is part of AIPS-3 memory region. Signed-off-by: Daniel Baluta Reviewed-by: Fabio Estevam --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale

[PATCH v7 0/4] Enable wm8524 on i.MX8MQ-EVK

2019-03-19 Thread Daniel Baluta
uot; compatbile string Changes since v2: - s/QM/MQ after Chris comments Changes since v1: - added cover letter - remove "fsl,imx8mq-sdma" compatible for sdma. Daniel Baluta (4): arm64: dts: imx8mq: Add SDMA nodes bindings: fsl-imx-sdma: Document fsl,imx8mq-sdma com

[PATCH v7 2/4] bindings: fsl-imx-sdma: Document fsl,imx8mq-sdma compatbile string

2019-03-19 Thread Daniel Baluta
Add imx8mq sdma support. Signed-off-by: Daniel Baluta Reviewed-by: Rob Herring Reviewed-by: Fabio Estevam --- Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt b/Documentation

[PATCH v7 1/4] arm64: dts: imx8mq: Add SDMA nodes

2019-03-19 Thread Daniel Baluta
SDMA1 is part of AIPS-3 region and SDMA2 is part of AIPS-1 region. Signed-off-by: Anson Huang Signed-off-by: Daniel Baluta Reviewed-by: Fabio Estevam --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts

[PATCH v7 4/4] arm64: dts: imx8mq-evk: Enable audio codec wm8524

2019-03-19 Thread Daniel Baluta
machine driver to connect them into a sound card. Signed-off-by: Daniel Baluta Reviewed-by: Fabio Estevam --- arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 48 1 file changed, 48 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts b/arch/arm64/boot

Re: [PATCH] clk: imx: lpcg: write twice when writing lpcg regs

2019-09-10 Thread Daniel Baluta
On Tue, Sep 10, 2019 at 1:40 PM Anson Huang wrote: > > > > > On Sat, Sep 7, 2019 at 9:47 PM Stephen Boyd wrote: > > > > > > Quoting Peng Fan (2019-08-27 01:17:50) > > > > From: Peng Fan > > > > > > > > There is hardware issue that: > > > > The output clock the LPCG cell will not turn back on as

Re: [alsa-devel] [PATCH] ASoC: cs42xx8: Force suspend/resume during system suspend/resume

2019-08-29 Thread Daniel Baluta
On Tue, 2019-08-27 at 18:13 -0400, Shengjiu Wang wrote: > Use force_suspend/resume to make sure clocks are disabled/enabled > accordingly during system suspend/resume. > > Signed-off-by: Dong Aisheng > Signed-off-by: Shengjiu Wang Reviewed-by: Daniel Baluta > --- > sou

[PATCH] ASoC: fsl_sai: Fix noise when using EDMA

2019-08-30 Thread Daniel Baluta
Team Signed-off-by: Mihai Serban Signed-off-by: Daniel Baluta --- sound/soc/fsl/fsl_sai.c | 15 +++ sound/soc/fsl/fsl_sai.h | 1 + 2 files changed, 16 insertions(+) diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c index 728307acab90..fe126029f4e3 100644 --- a/sound/soc

[PATCH] ASoC: fsl_sai: Implement set_bclk_ratio

2019-08-30 Thread Daniel Baluta
From: Viorel Suman This is to allow machine drivers to set a certain bitclk rate which might not be exactly rate * frame size. Cc: NXP Linux Team Signed-off-by: Viorel Suman Signed-off-by: Daniel Baluta --- sound/soc/fsl/fsl_sai.c | 21 +++-- sound/soc/fsl/fsl_sai.h | 1

[PATCH] ASoC: fsl_sai: Set SAI Channel Mode to Output Mode

2019-08-30 Thread Daniel Baluta
hen slots are masked or channels are disabled. Cc: NXP Linux Team Signed-off-by: Cosmin-Gabriel Samoila Signed-off-by: Daniel Baluta --- sound/soc/fsl/fsl_sai.c | 15 --- sound/soc/fsl/fsl_sai.h | 2 ++ 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/sound/soc/

Re: [PATCH] soc: imx: gpcv2: Print the correct error code

2019-08-22 Thread Daniel Baluta
On Wed, 2019-08-21 at 18:33 +0200, Guido Günther wrote: > The current code prints 'ret' (thus 0) while it should use 'err'. > > Signed-off-by: Guido Günther Reviewed-by: Daniel Baluta > --- > drivers/soc/imx/gpcv2.c | 2 +- > 1 file changed, 1 inserti

Re: [PATCH] ASoC: fsl_sai: Set SAI Channel Mode to Output Mode

2019-09-02 Thread Daniel Baluta
On Mon, Sep 2, 2019 at 3:42 PM Mark Brown wrote: > > On Sat, Aug 31, 2019 at 01:55:14AM +0300, Daniel Baluta wrote: > > > Fix this by setting CHMOD to Output Mode so that pins will output zero > > when slots are masked or channels are disabled. > > This patch seems

Re: [PATCH] ASoC: imx-audmix: register the card on a proper dev

2019-08-27 Thread Daniel Baluta
by the value in child device. > > Fixes: b86ef5367761 ("ASoC: fsl: Add Audio Mixer machine driver") > Signed-off-by: Viorel Suman > Signed-off-by: Shengjiu Wang Reviewed-by: Daniel Baluta Thanks Shengjiu for the fix! > --- > sound/soc/fsl/imx-audmix.c | 4 ++-- > 1 file

Re: [alsa-devel] [PATCH] ASoC: cs42xx8: Force suspend/resume during system suspend/resume

2019-08-27 Thread Daniel Baluta
On Tue, Aug 27, 2019 at 1:15 PM Shengjiu Wang wrote: > > Use force_suspend/resume to make sure clocks are disabled/enabled > accordingly during system suspend/resume. > > Signed-off-by: Dong Aisheng > Signed-off-by: Shengjiu Wang Reviewed-by: Daniel Baluta > --- > so

Re: [alsa-devel] [PATCH -next] ASoC: SOF: imx8: Make some functions static

2019-08-23 Thread Daniel Baluta
d. Should it be static? > sound/soc/sof/imx/imx8.c:348:5: warning: symbol 'imx8_ipc_pcm_params' was not > declared. Should it be static? > > Reported-by: Hulk Robot > Signed-off-by: YueHaibing Reviewed-by: Daniel Baluta > --- > sound/soc/sof/imx/imx8.c | 18 +--

Re: [PATCH -next] ASoC: SOF: imx8: Fix return value check in imx8_probe()

2019-08-26 Thread Daniel Baluta
W support") > Signed-off-by: Wei Yongjun Good catch. Thanks! Reviewed-by: Daniel Baluta > --- > sound/soc/sof/imx/imx8.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/sound/soc/sof/imx/imx8.c b/sound/soc/sof/imx/imx8.c > index e502f5842

Re: [PATCH -next] ASoC: SOF: imx8: Fix COMPILE_TEST error

2019-09-05 Thread Daniel Baluta
X_TOPLEVEL always depends on SND_SOC_SOF_OF > > Reported-by: Hulk Robot > Fixes: 202acc565a1f ("ASoC: SOF: imx: Add i.MX8 HW support") > Signed-off-by: YueHaibing Reviewed-by: Daniel Baluta > --- > sound/soc/sof/imx/Kconfig | 3 ++- > 1 file changed, 2 insertion

Re: [alsa-devel] [PATCH] ASoC: fsl_sai: Fix noise when using EDMA

2019-09-05 Thread Daniel Baluta
On Fri, Sep 6, 2019 at 4:25 AM Nicolin Chen wrote: > > On Fri, Aug 30, 2019 at 11:09:00PM +0300, Daniel Baluta wrote: > > From: Mihai Serban > > > > EDMA requires the period size to be multiple of maxburst. Otherwise the > > remaining bytes are not transfer

<    1   2   3   4   5   6   7   8   9   10   >