[PATCH v2 1/2] i2c: core: Add support for best effort block read emulation

2015-04-17 Thread Irina Tirdea
There are devices that need to handle block transactions regardless of the capabilities exported by the adapter. For performance reasons, they need to use i2c read blocks if available, otherwise emulate the block transaction with word or byte transactions. Add support for a helper function that wo

[PATCH v2 2/2] eeprom: at24: use i2c_smbus_read_i2c_block_data_or_emulated

2015-04-17 Thread Irina Tirdea
For i2c busses that support only SMBUS extensions, the eeprom at24 driver reads data from the device using the SMBus block, word or byte read protocols depending on availability. Replace the block read emulation from the driver with the i2c_smbus_read_i2c_block_data_or_emulated call from i2c core.

[PATCH v2 0/2] Add support for best effort block read emulation

2015-04-17 Thread Irina Tirdea
This is the second version for adding i2c_smbus_read_i2c_block_data_or_emulated to i2c-core. It contains mostly fixes suggested by Wolfram. Changes since v1: - dropped the RFC tag - changed at24 to use i2c_smbus_read_i2c_block_data_or_emulated - when reading an odd number of bytes using word em

Re: [PATCH v4 0/3] i2c: davinci improvements and fixes

2015-04-17 Thread grygorii.stras...@linaro.org
On 04/10/2015 06:59 PM, Wolfram Sang wrote: On Mon, Apr 06, 2015 at 03:38:38PM +0300, grygorii.stras...@linaro.org wrote: From: Grygorii Strashko This series converts driver to use I2C bus recovery infrastructure and adds Davinci I2C bus recovery mechanizm based on using ICPFUNC registers. The

Re: [V2 1/2] i2c: brcmstb: Add Broadcom settop SoC i2c controller driver

2015-04-17 Thread Florian Fainelli
On 16/04/15 22:52, rajeev kumar wrote: +#define bsc_readl(_dev, reg) \ + __bsc_readl(_dev, offsetof(struct bsc_regs, reg)) + > > use readl/writel This peripheral is used on chips that can run in either little or big-endian, and in bo

Re: Need some guidance on i2c-ocores driver

2015-04-17 Thread York Sun
Resend to LKML Lee, This question is actually more about MFD. Can you point me to the possible causes for my failure below? Thanks. York On 04/16/2015 05:02 PM, York Sun wrote: > Julia and other experts, > > I am seeking for help on my device driver. > > I am working on a module driver for

[PATCH] omap: i2c: Add calls for pinctrl state select

2015-04-17 Thread pascal . huerst
From: Pascal Huerst This adds calls to pinctrl subsystem in order to switch pin states on suspend/resume if you provide a "sleep" state in DT. Signed-off-by: Pascal Huerst --- drivers/i2c/busses/i2c-omap.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/i2c/busses/i2c-omap.c b/

RE: [RFC PATCH 1/1] i2c: core: Add support for best effort block read emulation

2015-04-17 Thread Tirdea, Irina
> -Original Message- > From: Wolfram Sang [mailto:w...@the-dreams.de] > Sent: 15 April, 2015 18:55 > To: Tirdea, Irina > Cc: linux-i2c@vger.kernel.org; linux-ker...@vger.kernel.org > Subject: Re: [RFC PATCH 1/1] i2c: core: Add support for best effort block > read emulation > > On Wed, M

[PULL REQUEST] i2c for 4.1

2015-04-17 Thread Wolfram Sang
Linus, here are two buildfixes for I2C based on your tree from the day before yesterday. Sadly, these build errors never reached me while the patches were sitting in -next. Need to fix that. Please pull. Thanks, Wolfram The following changes since commit bb0fd7ab0986105765d11baa82e619c618a2

Re: [PATCH v1 i2c/for-next] i2c-i801: recover from hardware PEC errors

2015-04-17 Thread Jean Delvare
Hi Ellen, On Wed, 15 Apr 2015 13:46:17 -0700, Ellen Wang wrote: > On 4/15/2015 5:08 AM, Jean Delvare wrote: > > On Mon, 13 Apr 2015 17:11:59 -0700, Ellen Wang wrote: > >> On a CRC error while using hardware-supported PEC, an additional > >> error bit is set in the auxiliary status register. If th