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

2014-10-09 Thread Octavian Purdila
On Thu, Oct 9, 2014 at 10:44 PM, Joe Perches wrote: > On Thu, 2014-10-09 at 22:22 +0300, Octavian Purdila wrote: >> 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: > > trivia: > >> diff --git a/drivers/mfd/Kconf

[RFC PATCH 2/3] i2c: document struct i2c_adapter

2014-10-09 Thread Octavian Purdila
Document the i2c_adapter fields that must be initialized before calling i2c_add_adapter(). Signed-off-by: Octavian Purdila --- include/linux/i2c.h | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/include/linux/i2c.h b/include/linux/i2c.h index a95efeb..36041e

[RFC PATCH 3/3] i2c: show and change bus frequency via sysfs

2014-10-09 Thread Octavian Purdila
This patch adds two new sysfs files, bus_frequency and bus_supported_frequencies which allows the user to view or change the bus frequency on a per bus level. This is required for e.g. USB I2C buses where we can have multiple device plugged in a system and where a module parameter does not allow c

[RFC PATCH 1/3] i2c: document the existing i2c sysfs ABI

2014-10-09 Thread Octavian Purdila
This patch adds Documentation/ABI/testing/sysfs-bus-i2c which documents the existing i2c sysfs ABI. Signed-off-by: Octavian Purdila --- Documentation/ABI/testing/sysfs-bus-i2c | 45 + 1 file changed, 45 insertions(+) create mode 100644 Documentation/ABI/testing/s

[RFC PATCH 0/3] i2c: show and change bus frequency via sysfs

2014-10-09 Thread Octavian Purdila
The first two patches are just general cleanup the actual implementation is in patch 3. If the general direction looks acceptable, I will send a follow-up series that adds sysfs bus frequency support to the existing drivers. Octavian Purdila (3): i2c: document the existing i2c sysfs ABI i2c: d

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

2014-10-09 Thread Joe Perches
On Thu, 2014-10-09 at 22:22 +0300, Octavian Purdila wrote: > 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: trivia: > diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig [] > +config MFD_DLN2 > + tristat

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

2014-10-09 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 v7 2/4] i2c: add support for Diolan DLN-2 USB-I2C adapter

2014-10-09 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 v7 4/4] gpio: add support for the Diolan DLN-2 USB GPIO driver

2014-10-09 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 v7 1/4] mfd: add support for Diolan DLN-2 devices

2014-10-09 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 v7 0/4] mfd: add support for Diolan DLN-2

2014-10-09 Thread Octavian Purdila
Changes since v6: * MFD: make sure DLN2_HANDLE_EVENT stays 0, move a few operations out of the lock block, renamed one missed _rx_callback function to _event_callback, speed-up disconnect by checking for it in find_free_slot, remove the URB submit helper and simplify URB resubmit code, use

Re: [PATCH] i2c: mpc: Report correct I2C error codes on Freescale MPC i2c bus driver

2014-10-09 Thread Mark Roszko
Hi, 1. You are going to want to resend your patch using git-send-mail, you used an email client that destroyed all formatting. gmail in particular is good at breaking things so your patch cannot be applied correctly. 2. You need to add a Signed-off-by line like other patches people submit. 3. You

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

2014-10-09 Thread Johan Hovold
On Wed, Oct 08, 2014 at 03:33:28PM +0300, Octavian Purdila wrote: > On Wed, Oct 8, 2014 at 3:04 PM, Johan Hovold wrote: > > On Wed, Oct 08, 2014 at 01:54:07PM +0300, Octavian Purdila wrote: > >> On Wed, Oct 8, 2014 at 12:23 PM, Johan Hovold wrote: > >> > On Thu, Sep 25, 2014 at 07:07:31PM +0300,

Re: [PATCH v3 1/3] mfd: add support for Cypress CYUSBS234 USB Serial Bridge controller

2014-10-09 Thread Johan Hovold
On Thu, Oct 09, 2014 at 11:59:50AM +0100, Lee Jones wrote: > On Thu, 09 Oct 2014, Johan Hovold wrote: > > On Thu, Oct 09, 2014 at 08:40:29AM +0100, Lee Jones wrote: > > > On Mon, 06 Oct 2014, Muthu Mani wrote: > > > > diff --git a/include/linux/mfd/cyusbs23x.h > > > > b/include/linux/mfd/cyusbs23

Re: [PATCH V2] i2c-designware: Add Intel Baytrail PMIC I2C bus support

2014-10-09 Thread Maxime Ripard
Hi David, On Tue, Oct 07, 2014 at 12:14:20PM -0700, David E. Box wrote: > Hi Maxime, > > On Thu, Sep 25, 2014 at 11:47:52AM +0200, Maxime Ripard wrote: > > Hi David, > > > > On Tue, Sep 23, 2014 at 12:58:54PM -0700, David E. Box wrote: > > > Hi Maxime, > > > > > > On Tue, Sep 23, 2014 at 09:00:

Re: [PATCH v3 1/3] mfd: add support for Cypress CYUSBS234 USB Serial Bridge controller

2014-10-09 Thread Lee Jones
On Thu, 09 Oct 2014, Johan Hovold wrote: > On Thu, Oct 09, 2014 at 08:40:29AM +0100, Lee Jones wrote: > > On Mon, 06 Oct 2014, Muthu Mani wrote: > > > > +static int update_ep_details(struct usb_interface *interface, > > > + struct cyusbs23x *cyusbs) > > > +{ > > > + struct

[PATCH] at24: extend driver to allow writing via i2c_smbus_write_byte_data

2014-10-09 Thread Christian Gmeiner
I have a at24 EEPROM connected via i2c bus provided by ISCH i2c bus driver. This bus driver does not support I2C_FUNC_SMBUS_WRITE_I2C_BLOCK and so I was looking for a way to be able to write the eeprom. This patch adds support for I2C_SMBUS_BYTE_DATA writing via i2c_smbus_write_byte_data. It is qui

Re: [PATCH v3 1/3] mfd: add support for Cypress CYUSBS234 USB Serial Bridge controller

2014-10-09 Thread Johan Hovold
On Thu, Oct 09, 2014 at 08:40:29AM +0100, Lee Jones wrote: > On Mon, 06 Oct 2014, Muthu Mani wrote: > > +static int update_ep_details(struct usb_interface *interface, > > + struct cyusbs23x *cyusbs) > > +{ > > + struct usb_host_interface *iface_desc; > > + struct usb_

Re: [PATCH v3 3/3] gpio: add support for Cypress CYUSBS234 USB-GPIO adapter

2014-10-09 Thread Alexandre Courbot
On Thu, Oct 9, 2014 at 8:46 AM, RR wrote: > On Wed, Oct 8, 2014 at 12:18 AM, Alexandre Courbot wrote: >> On Wed, Oct 8, 2014 at 4:09 PM, Muthu Mani wrote: -Original Message- From: Alexandre Courbot [mailto:gnu...@gmail.com] Sent: Tuesday, October 07, 2014 3:34 PM To:

[PATCH 2/3] i2c: qup: Remove .owner field for driver

2014-10-09 Thread Kiran Padwal
There is no need to init .owner field. Based on the patch from Peter Griffin "mmc: remove .owner field for drivers using module_platform_driver" This patch removes the superfluous .owner field for drivers which use the module_platform_driver API, as this is overridden in platform_driver_register

Re: [PATCH v3 1/3] mfd: add support for Cypress CYUSBS234 USB Serial Bridge controller

2014-10-09 Thread Lee Jones
On Mon, 06 Oct 2014, Muthu Mani wrote: > Adds support for USB-I2C/GPIO interfaces of Cypress Semiconductor > CYUSBS234 USB-Serial Bridge controller. > > Details about the device can be found at: > http://www.cypress.com/?rID=84126 > > Signed-off-by: Muthu Mani > Signed-off-by: Rajaram Regupathy