Re: [RFC 2/3] i2c: mux: demux-pinctrl: add driver

2015-07-01 Thread Wolfram Sang
+Changing I2C controllers: + +The created mux-device will have a file cur_master in its sysfs-entry. Write +0 there for the first master listed in the i2c-parent property, 1 for the +second etc. Reading the file will give you a list with the active master +marked. This paragraph

Re: [RFC 3/3] ARM: shmobile: r8a7790: rework dts to use i2c demuxer

2015-07-01 Thread Wolfram Sang
On Wed, Jul 01, 2015 at 09:10:23AM +0200, Geert Uytterhoeven wrote: On Tue, Jun 30, 2015 at 11:44 PM, Wolfram Sang w...@the-dreams.de wrote: --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -49,6 +49,8 @@ aliases { serial0 =

Re: [RFC 2/3] i2c: mux: demux-pinctrl: add driver

2015-07-01 Thread Geert Uytterhoeven
Hi Wolfram, On Tue, Jun 30, 2015 at 11:44 PM, Wolfram Sang w...@the-dreams.de wrote: From: Wolfram Sang wsa+rene...@sang-engineering.com This driver allows an I2C bus to switch between multiple masters. This is not hot-switching because connected I2C slaves will be re-instantiated. It is

Re: [PATCH v1] HID: cp2112: support i2c write-read transfers in hid-cp2112

2015-07-01 Thread Ellen Wang
In-line replies below: On 06/20/2015 08:41 AM, Antonio Borneo wrote: On Thu, Jun 18, 2015 at 5:55 PM, Ellen Wang el...@cumulusnetworks.com wrote: cp2112_i2c_xfer() only supports a single i2c_msg. More than one message at a time just returns EIO. This breaks certain important cases. For

Re: [PATCH] HID: cp2112: fix to force single data-report reply

2015-07-01 Thread Ellen Wang
Works as described. Thank you! By the way, I tested the code with and without your fix on my rev 2 chip, and it behaved the same way as you describe on your rev 1 chip. On 06/20/2015 11:20 PM, Antonio Borneo wrote: Current implementation of cp2112_raw_event() only accepts one data report at

Re: [RFC 3/3] ARM: shmobile: r8a7790: rework dts to use i2c demuxer

2015-07-01 Thread Geert Uytterhoeven
On Tue, Jun 30, 2015 at 11:44 PM, Wolfram Sang w...@the-dreams.de wrote: --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -49,6 +49,8 @@ aliases { serial0 = scifa0; serial1 = scifa1; + i2c8 =

Re: [PATCH v1] HID: cp2112: support large i2c transfers in hid-cp2112

2015-07-01 Thread Ellen Wang
Sorry this fell off my todo list for a while. On 06/20/2015 11:30 PM, Antonio Borneo wrote: On Sat, Jun 20, 2015 at 11:10 PM, Antonio Borneo borneo.anto...@gmail.com wrote: On Thu, Jun 18, 2015 at 8:34 AM, Ellen Wang el...@cumulusnetworks.com wrote: cp2112_i2c_xfer() only reads up to 61