Re: [PATCH v4 2/3] i2c: iproc: Add Broadcom iProc I2C Driver

2015-01-15 Thread Uwe Kleine-König
Hello, On Wed, Jan 14, 2015 at 02:23:32PM -0800, Ray Jui wrote: > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include some of them are not needed. I tested on amd64 and efm32 and could drop linux/device.h, lin

Re: [PATCH v4 3/3] ARM: dts: add I2C device nodes for Broadcom Cygnus

2015-01-15 Thread Uwe Kleine-König
Hello, On Wed, Jan 14, 2015 at 02:23:33PM -0800, Ray Jui wrote: > Add I2C device nodes and its properties in bcm-cygnus.dtsi but keep > them disabled there. Individual I2C devices can be enabled in board > specific dts file when I2C slave devices are enabled in the future s/$/./ > > Signed-off-b

[PATCH V4 0/2] i2c-designware: Add Intel Baytrail pmic i2c bus support

2015-01-15 Thread David E. Box
V4: - Added bus lock to i2c_dw_init() as suggested by Jarrko Nikula . Addresses infrequent hang that was seen occuring during probe. - Added label in i2c_dw_xfer() to bypass unnecessary lock release when acquire fails. Suggested by Mika. - Changed m

[PATCH V4 2/2] i2c-designware: Add Intel Baytrail PMIC I2C bus support

2015-01-15 Thread David E. Box
This patch implements an I2C bus sharing mechanism between the host and platform hardware on select Intel BayTrail SoC platforms using the X-Powers AXP288 PMIC. On these platforms access to the PMIC must be shared with platform hardware. The hardware unit assumes full control of the I2C bus and th

[PATCH V4 1/2] i2c-designware: Add i2c bus locking support

2015-01-15 Thread David E. Box
Adds support for acquiring and releasing a hardware bus lock in the i2c designware core transfer function. This is needed for i2c bus controllers that are shared with but not controlled by the kernel. Signed-off-by: David E. Box --- drivers/i2c/busses/i2c-designware-core.c | 26 +

Re: [PATCH v3 2/3] i2c: iproc: Add Broadcom iProc I2C Driver

2015-01-15 Thread Wolfram Sang
> >> + case M_CMD_STATUS_LOST_ARB: > >> + dev_err(dev->device, "lost bus arbitration\n"); > > I wouldn't dev_err that, only dev_dbg. I'm not sure how usual the errors > > for the next two cases is, maybe degrade them to dev_dbg, too? > > > These errors are rare, and it's nice to keep the

Re: [PATCH v4 2/3] i2c: iproc: Add Broadcom iProc I2C Driver

2015-01-15 Thread Wolfram Sang
> > + iproc_i2c->msg = msg; > Can it happen that iproc_i2c->msg still holds an uncompleted message > here or is this serialized by the core? Wolfram? Either here something We have per-adapter locks serializing transfers, if you mean that? > > +static int bcm_iproc_i2c_cfg_speed(struct bcm_ipro

Re: [PATCH v2] of: i2c: Add idle-disconnect DT property to PCA954x mux driver

2015-01-15 Thread Wolfram Sang
On Fri, Dec 19, 2014 at 06:00:10PM +0100, Alexander Sverdlin wrote: > of: i2c: Add idle-disconnect DT property to PCA954x mux driver > > Add idle-disconnect device tree property to PCA954x mux driver. The new > property > forces the multiplexer to disconnect child buses in idle state. This is use

Re: [PATCH] input: adxl34x: Add OF match support

2015-01-15 Thread Wolfram Sang
On Thu, Dec 18, 2014 at 02:49:28PM +0200, Laurent Pinchart wrote: > Hi Wolfram, > > On Thursday 18 December 2014 09:21:51 Wolfram Sang wrote: > > On Thu, Dec 18, 2014 at 04:15:23AM +0200, Laurent Pinchart wrote: > > > The I2C subsystem can match devices without explicit OF support based on > > > t

Re: [PATCH] input: adxl34x: Add OF match support

2015-01-15 Thread Geert Uytterhoeven
On Thu, Jan 15, 2015 at 1:53 PM, Wolfram Sang wrote: >> There are three compatible strings defined for the ADXL345 and ADXL346 in >> Documentation/devicetree/bindings/i2c/trivial-devices.txt: "adi,adxl345", >> "adi,adxl346", "adi,adxl34x". Given that the last one is a fallback for the >> first two

Re: [PATCH v2] of: i2c: Add idle-disconnect DT property to PCA954x mux driver

2015-01-15 Thread Alexander Sverdlin
Hi Wolfram! On 15/01/15 13:32, ext Wolfram Sang wrote: > On Fri, Dec 19, 2014 at 06:00:10PM +0100, Alexander Sverdlin wrote: >> of: i2c: Add idle-disconnect DT property to PCA954x mux driver >> >> Add idle-disconnect device tree property to PCA954x mux driver. The new >> property >> forces the mu

Re: [PATCH v2] of: i2c: Add idle-disconnect DT property to PCA954x mux driver

2015-01-15 Thread Wolfram Sang
On Thu, Jan 15, 2015 at 02:09:09PM +0100, Alexander Sverdlin wrote: > Hi Wolfram! > > On 15/01/15 13:32, ext Wolfram Sang wrote: > > On Fri, Dec 19, 2014 at 06:00:10PM +0100, Alexander Sverdlin wrote: > >> of: i2c: Add idle-disconnect DT property to PCA954x mux driver > >> > >> Add idle-disconnect

Re: [PATCH v2] of: i2c: Add idle-disconnect DT property to PCA954x mux driver

2015-01-15 Thread Alexander Sverdlin
Hi Wolfram, On 15/01/15 14:19, ext Wolfram Sang wrote: of: i2c: Add idle-disconnect DT property to PCA954x mux driver > >> > >> Add idle-disconnect device tree property to PCA954x mux driver. The > >> new property > >> forces the multiplexer to disconnect child buses in i

Re: [PATCH] input: adxl34x: Add OF match support

2015-01-15 Thread Laurent Pinchart
Hi Wolfram, On Thursday 15 January 2015 13:53:22 Wolfram Sang wrote: > On Thu, Dec 18, 2014 at 02:49:28PM +0200, Laurent Pinchart wrote: > > On Thursday 18 December 2014 09:21:51 Wolfram Sang wrote: > >> On Thu, Dec 18, 2014 at 04:15:23AM +0200, Laurent Pinchart wrote: > >>> The I2C subsystem can

Re: [PATCH] input: adxl34x: Add OF match support

2015-01-15 Thread Laurent Pinchart
On Thursday 15 January 2015 16:19:19 Laurent Pinchart wrote: > On Thursday 15 January 2015 13:53:22 Wolfram Sang wrote: > > On Thu, Dec 18, 2014 at 02:49:28PM +0200, Laurent Pinchart wrote: > >> On Thursday 18 December 2014 09:21:51 Wolfram Sang wrote: > >>> On Thu, Dec 18, 2014 at 04:15:23AM +0200

Re: [PATCH] input: adxl34x: Add OF match support

2015-01-15 Thread Geert Uytterhoeven
On Thu, Jan 15, 2015 at 3:19 PM, Laurent Pinchart wrote: >> > An option would be to remove "adi,adxl34x" from >> > Documentation/devicetree/bindings/i2c/trivial-devices.txt, in which case >> > the driver should match explicitly on "adi,adxl345" and "adi,adxl346". >> > That might clash with the DT

Re: [PATCH] input: adxl34x: Add OF match support

2015-01-15 Thread Wolfram Sang
> > > Been there, got bitten. We only found out too late, because one driver > > > was in i2c and the other in GPIO (or LED even?), both using "953x" :( > > > > That seems like a development, review and/or merge process failure to me, I > > wouldn't avoid generic compatible strings for that reaso

Re: [PATCH] input: adxl34x: Add OF match support

2015-01-15 Thread Laurent Pinchart
On Thursday 15 January 2015 15:36:37 Wolfram Sang wrote: > >>> Been there, got bitten. We only found out too late, because one driver > >>> was in i2c and the other in GPIO (or LED even?), both using "953x" :( > >> > >> That seems like a development, review and/or merge process failure to > >> me,

Re: [PATCH v2] of: i2c: Add idle-disconnect DT property to PCA954x mux driver

2015-01-15 Thread Laurent Pinchart
Hi Wolfram, On Thursday 15 January 2015 14:19:35 Wolfram Sang wrote: > On Thu, Jan 15, 2015 at 02:09:09PM +0100, Alexander Sverdlin wrote: > > On 15/01/15 13:32, ext Wolfram Sang wrote: > >> On Fri, Dec 19, 2014 at 06:00:10PM +0100, Alexander Sverdlin wrote: > >>> of: i2c: Add idle-disconnect DT p

[PATCH v2 0/2] Fix OF match for adxl34x driver

2015-01-15 Thread Laurent Pinchart
Hello, This patch set fixes OF matching for the adxl34x driver when the DT node lists a device-specific "adi,adxl345" or "adi,adxl346" compatible value first. The first version (see http://www.spinics.net/lists/linux-i2c/msg18107.html) added an OF match entry for the "adi,adxl34x" compatible stri

[PATCH v2 1/2] DT: i2c: Deprecate adi,adxl34x compatible string

2015-01-15 Thread Laurent Pinchart
DT nodes should use the more specific adi,adxl345 and adi,adxl346 compatible values instead. As the ADXL346 is backward-compatible with the ADXL345, ADXL346 nodes must list both adi,adxl346 and adi,adxl345, in that order. Signed-off-by: Laurent Pinchart --- Documentation/devicetree/bindings/i2c/

[PATCH v2 2/2] input: adxl34x: Add OF match support

2015-01-15 Thread Laurent Pinchart
The I2C subsystem can match devices without explicit OF support based on the part of their compatible property after the comma. However, this mechanism uses the first compatible value only. For adxl34x OF device nodes the compatible property will contain the more specific "adi,adxl345" or "adi,adxl

Re: [PATCH v2] of: i2c: Add idle-disconnect DT property to PCA954x mux driver

2015-01-15 Thread Rob Herring
On Thu, Jan 15, 2015 at 6:32 AM, Wolfram Sang wrote: > On Fri, Dec 19, 2014 at 06:00:10PM +0100, Alexander Sverdlin wrote: >> of: i2c: Add idle-disconnect DT property to PCA954x mux driver >> >> Add idle-disconnect device tree property to PCA954x mux driver. The new >> property >> forces the mult

Re: [PATCH] [RFC] i2c: Don't wait for device release in i2c_del_adapter

2015-01-15 Thread Pantelis Antoniou
Hi Greg, > On Jan 14, 2015, at 22:41 , Greg Kroah-Hartman > wrote: > > On Wed, Jan 14, 2015 at 07:24:22PM +0200, Pantelis Antoniou wrote: >> I’ll try to dig around tomorrow and see what the real device reference counts >> are, but my hunch goes like this: >> >> MUX >> +—- ADAPTER >>+— DEV.

Re: [PATCH v4 2/3] i2c: iproc: Add Broadcom iProc I2C Driver

2015-01-15 Thread Uwe Kleine-König
Hello, On Thu, Jan 15, 2015 at 01:07:05PM +0100, Wolfram Sang wrote: > > > + iproc_i2c->msg = msg; > > Can it happen that iproc_i2c->msg still holds an uncompleted message > > here or is this serialized by the core? Wolfram? Either here something > > We have per-adapter locks serializing transfer

[PATCH] i2c: Mark instantiated device nodes with OF_POPULATE

2015-01-15 Thread Pantelis Antoniou
Mark (and unmark) device nodes with the POPULATE flag as appropriate. This is required to avoid multi probing when using I2C and device overlays containing a mux. This patch is also more careful with the release of the adapter device which caused a deadlock with muxes. Signed-off-by: Pantelis Anto

Re: [PATCH v2 2/2] input: adxl34x: Add OF match support

2015-01-15 Thread Wolfram Sang
On Thu, Jan 15, 2015 at 04:54:15PM +0200, Laurent Pinchart wrote: > The I2C subsystem can match devices without explicit OF support based on > the part of their compatible property after the comma. However, this > mechanism uses the first compatible value only. For adxl34x OF device > nodes the com

Re: [PATCH v2 1/2] DT: i2c: Deprecate adi,adxl34x compatible string

2015-01-15 Thread Wolfram Sang
On Thu, Jan 15, 2015 at 04:54:14PM +0200, Laurent Pinchart wrote: > DT nodes should use the more specific adi,adxl345 and adi,adxl346 > compatible values instead. As the ADXL346 is backward-compatible with > the ADXL345, ADXL346 nodes must list both adi,adxl346 and adi,adxl345, > in that order. >

[PATCH] i2c: mv64xxx: enable acquisition of timeout value from Device Tree

2015-01-15 Thread Gregory CLEMENT
From: Marcin Wojtas This commit enables obtaining timeout value in miliseconds using the timeout-ms property. If it doesn't succeed, the default value of 1000ms is set. The Device Tree binding documentation is updated accordingly. [gregory.clem...@free-electrons.com: convert commit log to mainl

Re: [PATCH v2 1/2] DT: i2c: Deprecate adi,adxl34x compatible string

2015-01-15 Thread Dmitry Torokhov
On Thu, Jan 15, 2015 at 06:02:09PM +0100, Wolfram Sang wrote: > On Thu, Jan 15, 2015 at 04:54:14PM +0200, Laurent Pinchart wrote: > > DT nodes should use the more specific adi,adxl345 and adi,adxl346 > > compatible values instead. As the ADXL346 is backward-compatible with > > the ADXL345, ADXL346

Re: [PATCH v2 1/2] DT: i2c: Deprecate adi,adxl34x compatible string

2015-01-15 Thread Geert Uytterhoeven
On Thu, Jan 15, 2015 at 6:02 PM, Wolfram Sang wrote: >> --- a/Documentation/devicetree/bindings/i2c/trivial-devices.txt >> +++ b/Documentation/devicetree/bindings/i2c/trivial-devices.txt >> @@ -18,8 +18,7 @@ adi,adt7475 +/-1C TDM Extended Temp Range I.C >> adi,adt7476 +/-1C TDM E

Re: [PATCH] i2c: Mark instantiated device nodes with OF_POPULATE

2015-01-15 Thread Wolfram Sang
On Thu, Jan 15, 2015 at 06:33:55PM +0200, Pantelis Antoniou wrote: > Mark (and unmark) device nodes with the POPULATE flag as appropriate. > This is required to avoid multi probing when using I2C and device > overlays containing a mux. > This patch is also more careful with the release of the adapt

Re: [PATCH v2 1/2] DT: i2c: Deprecate adi,adxl34x compatible string

2015-01-15 Thread Wolfram Sang
On Thu, Jan 15, 2015 at 06:32:31PM +0100, Geert Uytterhoeven wrote: > On Thu, Jan 15, 2015 at 6:02 PM, Wolfram Sang wrote: > >> --- a/Documentation/devicetree/bindings/i2c/trivial-devices.txt > >> +++ b/Documentation/devicetree/bindings/i2c/trivial-devices.txt > >> @@ -18,8 +18,7 @@ adi,adt7475

Re: [PATCH v2 2/2] input: adxl34x: Add OF match support

2015-01-15 Thread Geert Uytterhoeven
On Thu, Jan 15, 2015 at 3:54 PM, Laurent Pinchart wrote: > The I2C subsystem can match devices without explicit OF support based on > the part of their compatible property after the comma. However, this > mechanism uses the first compatible value only. For adxl34x OF device > nodes the compatible

Re: [PATCH v2 1/2] DT: i2c: Deprecate adi,adxl34x compatible string

2015-01-15 Thread Geert Uytterhoeven
On Thu, Jan 15, 2015 at 3:54 PM, Laurent Pinchart wrote: > DT nodes should use the more specific adi,adxl345 and adi,adxl346 > compatible values instead. As the ADXL346 is backward-compatible with > the ADXL345, ADXL346 nodes must list both adi,adxl346 and adi,adxl345, > in that order. > > Signed-

Re: [PATCH v2 1/2] DT: i2c: Deprecate adi,adxl34x compatible string

2015-01-15 Thread Geert Uytterhoeven
On Thu, Jan 15, 2015 at 6:43 PM, Wolfram Sang wrote: > On Thu, Jan 15, 2015 at 06:32:31PM +0100, Geert Uytterhoeven wrote: >> On Thu, Jan 15, 2015 at 6:02 PM, Wolfram Sang wrote: >> >> --- a/Documentation/devicetree/bindings/i2c/trivial-devices.txt >> >> +++ b/Documentation/devicetree/bindings/i2

Re: [PATCH] i2c: Mark instantiated device nodes with OF_POPULATE

2015-01-15 Thread Pantelis Antoniou
Hi Wolfram, > On Jan 15, 2015, at 19:35 , Wolfram Sang wrote: > > On Thu, Jan 15, 2015 at 06:33:55PM +0200, Pantelis Antoniou wrote: >> Mark (and unmark) device nodes with the POPULATE flag as appropriate. >> This is required to avoid multi probing when using I2C and device >> overlays containin

[PATCH] i2c: Mark instantiated device nodes with OF_POPULATE

2015-01-15 Thread Pantelis Antoniou
Mark (and unmark) device nodes with the POPULATE flag as appropriate. This is required to avoid multi probing when using I2C and device overlays containing a mux. This patch is also more careful with the release of the adapter device which caused a deadlock with muxes, and does not break the build

Re: [PATCH v2 2/2] input: adxl34x: Add OF match support

2015-01-15 Thread Dmitry Torokhov
On Thu, Jan 15, 2015 at 06:45:33PM +0100, Geert Uytterhoeven wrote: > On Thu, Jan 15, 2015 at 3:54 PM, Laurent Pinchart > wrote: > > The I2C subsystem can match devices without explicit OF support based on > > the part of their compatible property after the comma. However, this > > mechanism uses

Re: [PATCH] i2c: Mark instantiated device nodes with OF_POPULATE

2015-01-15 Thread Guenter Roeck
On Thu, Jan 15, 2015 at 08:33:18PM +0200, Pantelis Antoniou wrote: > Mark (and unmark) device nodes with the POPULATE flag as appropriate. > This is required to avoid multi probing when using I2C and device > overlays containing a mux. > This patch is also more careful with the release of the adapt

Re: [PATCH] i2c: Mark instantiated device nodes with OF_POPULATE

2015-01-15 Thread Pantelis Antoniou
Hi Guenter, > On Jan 15, 2015, at 20:55 , Guenter Roeck wrote: > > On Thu, Jan 15, 2015 at 08:33:18PM +0200, Pantelis Antoniou wrote: >> Mark (and unmark) device nodes with the POPULATE flag as appropriate. >> This is required to avoid multi probing when using I2C and device >> overlays containi

Re: [PATCH] i2c: Mark instantiated device nodes with OF_POPULATE

2015-01-15 Thread Guenter Roeck
On Thu, Jan 15, 2015 at 09:12:36PM +0200, Pantelis Antoniou wrote: > Hi Guenter, > > > On Jan 15, 2015, at 20:55 , Guenter Roeck wrote: > > > > On Thu, Jan 15, 2015 at 08:33:18PM +0200, Pantelis Antoniou wrote: > >> Mark (and unmark) device nodes with the POPULATE flag as appropriate. > >> This

Re: [PATCH v2 2/2] input: adxl34x: Add OF match support

2015-01-15 Thread Geert Uytterhoeven
On Thu, Jan 15, 2015 at 7:54 PM, Dmitry Torokhov wrote: > I still do not understand what we are trying to fix here. Why is > "adi,adxl34x" compatible string no good anymore? If we start using exact > models and the physical device does not match do we abort probe? What is > the problem that we are

Re: [PATCH v2 2/2] input: adxl34x: Add OF match support

2015-01-15 Thread Laurent Pinchart
On Thursday 15 January 2015 21:00:37 Geert Uytterhoeven wrote: > On Thu, Jan 15, 2015 at 7:54 PM, Dmitry Torokhov wrote: > > I still do not understand what we are trying to fix here. Why is > > "adi,adxl34x" compatible string no good anymore? If we start using exact > > models and the physical devi

Re: [PATCH] i2c: mv64xxx: enable acquisition of timeout value from Device Tree

2015-01-15 Thread Thomas Petazzoni
Dear Gregory CLEMENT, On Thu, 15 Jan 2015 18:24:31 +0100, Gregory CLEMENT wrote: > diff --git a/Documentation/devicetree/bindings/i2c/i2c-mv64xxx.txt > b/Documentation/devicetree/bindings/i2c/i2c-mv64xxx.txt > index 5c30026921ae..d7fa740b68f1 100644 > --- a/Documentation/devicetree/bindings/i2c/

Re: [PATCH v2 1/2] DT: i2c: Deprecate adi,adxl34x compatible string

2015-01-15 Thread Laurent Pinchart
Hi Wolfram, On Thursday 15 January 2015 18:43:33 Wolfram Sang wrote: > On Thu, Jan 15, 2015 at 06:32:31PM +0100, Geert Uytterhoeven wrote: > > On Thu, Jan 15, 2015 at 6:02 PM, Wolfram Sang wrote: > >>> --- a/Documentation/devicetree/bindings/i2c/trivial-devices.txt > >>> +++ b/Documentation/devic

Re: [PATCH v2 2/2] input: adxl34x: Add OF match support

2015-01-15 Thread Dmitry Torokhov
On Thu, Jan 15, 2015 at 10:34:29PM +0200, Laurent Pinchart wrote: > On Thursday 15 January 2015 21:00:37 Geert Uytterhoeven wrote: > > On Thu, Jan 15, 2015 at 7:54 PM, Dmitry Torokhov wrote: > > > I still do not understand what we are trying to fix here. Why is > > > "adi,adxl34x" compatible string

Re: [PATCH] i2c: Mark instantiated device nodes with OF_POPULATE

2015-01-15 Thread Rob Herring
On Thu, Jan 15, 2015 at 12:33 PM, Pantelis Antoniou wrote: > Mark (and unmark) device nodes with the POPULATE flag as appropriate. > This is required to avoid multi probing when using I2C and device > overlays containing a mux. > This patch is also more careful with the release of the adapter devi

Re: [PATCH v2 2/2] input: adxl34x: Add OF match support

2015-01-15 Thread Laurent Pinchart
On Thursday 15 January 2015 13:06:32 Dmitry Torokhov wrote: > On Thu, Jan 15, 2015 at 10:34:29PM +0200, Laurent Pinchart wrote: > > On Thursday 15 January 2015 21:00:37 Geert Uytterhoeven wrote: > > > On Thu, Jan 15, 2015 at 7:54 PM, Dmitry Torokhov wrote: > > > > I still do not understand what we

Re: [PATCH v2 2/2] input: adxl34x: Add OF match support

2015-01-15 Thread Dmitry Torokhov
On Thu, Jan 15, 2015 at 11:34:00PM +0200, Laurent Pinchart wrote: > On Thursday 15 January 2015 13:06:32 Dmitry Torokhov wrote: > > On Thu, Jan 15, 2015 at 10:34:29PM +0200, Laurent Pinchart wrote: > > > On Thursday 15 January 2015 21:00:37 Geert Uytterhoeven wrote: > > > > On Thu, Jan 15, 2015 at

Re: [PATCH v2 2/2] input: adxl34x: Add OF match support

2015-01-15 Thread Sergei Shtylyov
Hello. On 01/15/2015 11:34 PM, Laurent Pinchart wrote: I still do not understand what we are trying to fix here. Why is "adi,adxl34x" compatible string no good anymore? If we start using exact models and the physical device does not match do we abort probe? What is the problem that we are solvi

Re: [PATCH v2 2/2] input: adxl34x: Add OF match support

2015-01-15 Thread Laurent Pinchart
Hi Dmitry, On Thursday 15 January 2015 13:50:53 Dmitry Torokhov wrote: > On Thu, Jan 15, 2015 at 11:34:00PM +0200, Laurent Pinchart wrote: > > On Thursday 15 January 2015 13:06:32 Dmitry Torokhov wrote: > >> On Thu, Jan 15, 2015 at 10:34:29PM +0200, Laurent Pinchart wrote: > >>> On Thursday 15 Jan

Re: [PATCH] [RFC] i2c: Don't wait for device release in i2c_del_adapter

2015-01-15 Thread Greg Kroah-Hartman
On Thu, Jan 15, 2015 at 06:25:22PM +0200, Pantelis Antoniou wrote: > Hi Greg, > > > On Jan 14, 2015, at 22:41 , Greg Kroah-Hartman > > wrote: > > > > On Wed, Jan 14, 2015 at 07:24:22PM +0200, Pantelis Antoniou wrote: > >> I’ll try to dig around tomorrow and see what the real device reference >

[PATCH V3 1/1] iio: Added Capella cm3232 ambient light sensor driver.

2015-01-15 Thread Kevin Tsai
CM3232 is an advanced ambient light sensor with I2C protocol interface. The I2C slave address is internally hardwired as 0x10 (7-bit). Writing to configure register is byte mode, but reading ALS register requests to use word mode for 16-bit resolution. Signed-off-by: Kevin Tsai --- v3: Added hw_

Re: [RFC 01/11] i2c: add quirk structure to describe adapter flaws

2015-01-15 Thread Eddie Huang
Hi Wolfram, On Fri, 2015-01-09 at 18:21 +0100, Wolfram Sang wrote: > > + */ > +struct i2c_adapter_quirks { > + u64 flags; > + int max_num_msgs; > + u16 max_write_len; > + u16 max_read_len; > + u16 max_comb_write_len; > + u16 max_comb_read_len; > +}; > + > +#define I2C_ADA

Re: [PATCH] [RFC] i2c: Don't wait for device release in i2c_del_adapter

2015-01-15 Thread Pantelis Antoniou
Hi Greg, > On Jan 16, 2015, at 00:55 , Greg Kroah-Hartman > wrote: > > On Thu, Jan 15, 2015 at 06:25:22PM +0200, Pantelis Antoniou wrote: >> Hi Greg, >> >>> On Jan 14, 2015, at 22:41 , Greg Kroah-Hartman >>> wrote: >>> >>> On Wed, Jan 14, 2015 at 07:24:22PM +0200, Pantelis Antoniou wrote: >

[PATCH 1/2] of: Add vendor prefix 'netlogic'

2015-01-15 Thread Jayachandran C
From: Subhendu Sekhar Behera Add vendor name "netlogic" in vendor-prefixes.txt, which will be used for the Netlogic XLP and XLPII MIPS SoCs. These processors were from NetLogic Microsystems which is now part of Broadcom Corporation. Signed-off-by: Subhendu Sekhar Behera Signed-off-by: Jayachand

[PATCH 2/2] i2c: Support for Netlogic XLP9XX/5XX I2C controller.

2015-01-15 Thread Jayachandran C
From: Subhendu Sekhar Behera Add an I2C bus driver i2c-xlp9xx.c to support the I2C block in the XLP9xx/XLP5xx MIPS SoC. Update Kconfig and Makefile to add the CONFIG_I2C_XLP9XX option. Also add document Documentation/devicetree/bindings/i2c/i2c-xlp9xx.txt for DT compatible string "netlogic,xlp9x

Re: [PATCH] [RFC] i2c: Don't wait for device release in i2c_del_adapter

2015-01-15 Thread Jean Delvare
Hi Pantelis, On Thu, 15 Jan 2015 18:25:22 +0200, Pantelis Antoniou wrote: > The remove method of the mux gets called and on it’s remove method > i2c_del_mux_adapter is called, > which in turn calls i2c_del_adapter() which hangs. > > Anyway, finally figured out what the problem was, a reference w