Re: [PATCH v5 4/4] gpio: add support for the Diolan DLN-2 USB GPIO driver

2014-09-19 Thread Octavian Purdila
On Sat, Sep 20, 2014 at 5:48 AM, Arnd Bergmann wrote: > On Friday 19 September 2014, Octavian Purdila wrote: >> +struct dln2_gpio_pin { >> + __le16 pin; >> +} __packed; > > This does not need to be marked packed, since it is never embedded in another > structure. > Will do. >> +struct dln2_g

Re: [PATCH v5 4/4] gpio: add support for the Diolan DLN-2 USB GPIO driver

2014-09-19 Thread Arnd Bergmann
On Friday 19 September 2014, Octavian Purdila wrote: > +struct dln2_gpio_pin { > + __le16 pin; > +} __packed; This does not need to be marked packed, since it is never embedded in another structure. > +struct dln2_gpio_pin_val { > + __le16 pin; > + u8 value; > +} __packed; It's enoug

[PATCH v5 3/4] gpiolib: add irq_not_threaded flag to gpio_chip

2014-09-19 Thread Octavian Purdila
Some GPIO chips (e.g. the DLN2 USB adapter) have blocking get/set operation but do not need a threaded irq handler. Signed-off-by: Octavian Purdila --- drivers/gpio/gpiolib.c | 2 +- include/linux/gpio/driver.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/g

[PATCH v5 2/4] i2c: add support for Diolan DLN-2 USB-I2C adapter

2014-09-19 Thread Octavian Purdila
From: Laurentiu Palcu This patch adds support for the Diolan DLN-2 I2C master module. Due to hardware limitations it does not support SMBUS quick commands. Information about the USB protocol interface can be found in the Programmer's Reference Manual [1], see section 6.2.2 for the I2C master mod

[PATCH v5 4/4] gpio: add support for the Diolan DLN-2 USB GPIO driver

2014-09-19 Thread Octavian Purdila
From: Daniel Baluta This patch adds GPIO and IRQ support for the Diolan DLN-2 GPIO module. Information about the USB protocol interface can be found in the Programmer's Reference Manual [1], see section 2.9 for the GPIO module commands and responses. [1] https://www.diolan.com/downloads/dln-api

[PATCH v5 1/4] mfd: add support for Diolan DLN-2 devices

2014-09-19 Thread Octavian Purdila
This patch implements the USB part of the Diolan USB-I2C/SPI/GPIO Master Adapter DLN-2. Details about the device can be found here: https://www.diolan.com/i2c/i2c_interface.html. Information about the USB protocol can be found in the Programmer's Reference Manual [1], see section 1.7. Because th

[PATCH v5 0/4] mfd: add support for Diolan DLN-2

2014-09-19 Thread Octavian Purdila
This patch series adds support for Diolan USB-I2C/GPIO Master Adapter DLN-2. Details about device can be found here: https://www.diolan.com/i2c/i2c_interface.html. Changes since v4: * Add a new gpiolib chip flag to allow blocking chips with non threaded IRQ handlers * MFD: set GPLv2 as licens

[PATCH v5 06/11] i2c: core: Convert to dev_pm_domain_attach|detach()

2014-09-19 Thread Ulf Hansson
Previously only the ACPI PM domain was supported by the i2c bus. Let's convert to the common attach/detach functions for PM domains, which currently means we are extending the support to include the generic PM domain as well. Cc: linux-i2c@vger.kernel.org Signed-off-by: Ulf Hansson Reviewed-by:

Re: [PATCH resend 2/2] i2c: hix5hd2: add i2c controller driver

2014-09-19 Thread Wolfram Sang
Hi, thanks for the submission. > --- /dev/null > +++ b/drivers/i2c/busses/i2c-hix5hd2.c > @@ -0,0 +1,573 @@ > +/* > + * Copyright (c) 2014 Linaro Ltd. > + * Copyright (c) 2014 Hisilicon Limited. > + * > + * This program is free software; you can redistribute it and/or modify > + * it under the te

Re: [PATCH 1/5] i2c: rcar: add renesas,i2c-rcar-gen1/gen2 in DT compatible

2014-09-19 Thread Wolfram Sang
> This approach has no effect to current feature, > and can keep compatible for current and future, > and can reduce / cleanup driver in the future. I defer the patch series for now. Maybe we should talk about it at our next meeting? -- To unsubscribe from this list: send the line "unsubscribe l

Re: [PATCH v2 1/5] i2c: Don't start transfers when suspended

2014-09-19 Thread Wolfram Sang
On Thu, Jul 17, 2014 at 04:48:36PM +0200, Bastian Hecht wrote: > i2c transfer requests come in very uncontrolled, like from interrupt routines. > We might be suspended when this happens. To avoid i2c timeouts caused by > powered down busses we check for suspension. > > Several bus drivers handle t

Re: [PATCH v7 1/2] i2c: imx: add DMA support for freescale i2c driver

2014-09-19 Thread Marek Vasut
On Thursday, September 18, 2014 at 05:46:04 PM, Yao Yuan wrote: > Marek Vasut wrote: > > On Wednesday, September 17, 2014 at 04:50:34 PM, Yao Yuan wrote: > > [...] > > > > > > > > Would that mean that the "crashed" DMA would be running until the > > > > > > next transmission is scheduled ? > > > >

Re: [PATCH 1/2] i2c: designware: Rework probe() to get clock a bit later

2014-09-19 Thread Mika Westerberg
On Fri, Sep 19, 2014 at 03:08:58PM +0800, carl peng wrote: > On Thu, Sep 18, 2014 at 5:26 PM, Mika Westerberg > wrote: > > In order to be able to create missing clock for AMD (and in future possibly > > others) we move getting clock for the device a bit later. Also make ACPI/DT > > configuration i

Re: i2c-core.ko renamed to i2ccore.ko

2014-09-19 Thread Mika Westerberg
On Fri, Sep 19, 2014 at 04:28:02PM +0800, Lan Tianyu wrote: > How about including i2c-acpi.c in the i2c-core.c directly if ACPI is > selected? I would rather see it merged there. -- To unsubscribe from this list: send the line "unsubscribe linux-i2c" in the body of a message to majord...@vger.kern

Re: i2c-core.ko renamed to i2ccore.ko

2014-09-19 Thread Lan Tianyu
On 2014年09月18日 23:10, Wolfram Sang wrote: > On Thu, Sep 18, 2014 at 03:58:57PM +0300, Mika Westerberg wrote: >> On Thu, Sep 18, 2014 at 02:17:58PM +0200, Jean Delvare wrote: >>> Hi guys, >>> >>> Sorry for jumping in a bit late, but given that I did not get involved >>> in the discussions that led t

[PATCH 1/2 v2] i2c: cros-ec-tunnel: Add of match table

2014-09-19 Thread Sjoerd Simons
To enable the cros-ec-tunnel driver to be auto-loaded when build as a module add an of match table (and export it) to match the modalias information passed on to userspace as the Cros EC MFD driver registers the MFD subdevices with an of_compatibility string. Signed-off-by: Sjoerd Simons Reviewed

[PATCH 2/2] input: cros_ec_keyb: Add of match table

2014-09-19 Thread Sjoerd Simons
To enable the cros_ec_keyb driver to be auto-loaded when build as module add an of match table (and export it) to match the modalias information passed on to userspace as the Cros EC MFD driver registers the MFD subdevices with an of_compatibility string. Signed-off-by: Sjoerd Simons Reviewed-by:

[PATCH 0/2 v2] Add OF match tables for the ChromeOs EC subdevices

2014-09-19 Thread Sjoerd Simons
[ This is essentially a resend, adding Javiers reviewed-by and fixing some small identation issues in the second patch. Also added Wolfgang and Dimitry in the to, as i missed them last time ] The ChromeOS EC MFD driver registers its sub-devices with both a (platform) name and an OF compatibility s

Re: [PATCH v4 3/3] gpio: add support for the Diolan DLN-2 USB GPIO driver

2014-09-19 Thread Johan Hovold
On Thu, Sep 18, 2014 at 06:54:34PM +0300, Octavian Purdila wrote: > On Thu, Sep 18, 2014 at 3:46 PM, Johan Hovold wrote: > > On Thu, Sep 18, 2014 at 03:43:07PM +0300, Octavian Purdila wrote: > >> On Thu, Sep 18, 2014 at 1:54 PM, Johan Hovold wrote: > >> > On Tue, Sep 09, 2014 at 10:24:46PM +0300,

Re: [PATCH 1/2] i2c: designware: Rework probe() to get clock a bit later

2014-09-19 Thread carl peng
On Thu, Sep 18, 2014 at 5:26 PM, Mika Westerberg wrote: > In order to be able to create missing clock for AMD (and in future possibly > others) we move getting clock for the device a bit later. Also make ACPI/DT > configuration in the same place depending on from where the device was > enumerated