Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1431119

Re: [RFT PATCH] regmap-i2c: Only use I2C_FUNC_I2C if val_bits == 8

From Mark Brown <broonie@kernel.org>
Newsgroups linux.kernel
Subject Re: [RFT PATCH] regmap-i2c: Only use I2C_FUNC_I2C if val_bits == 8
Date 2016-06-25 13:40 +0200
Message-ID <rNU6l-4TK-5@gated-at.bofh.it> (permalink)
References <rNLZ8-8gc-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Fri, Jun 24, 2016 at 07:53:53PM -0700, Guenter Roeck wrote:

> On chips with a register value size of 16 bits, I2C block reads will
> typically not return the expected values. Instead, returned values
> are most likely undefined if an operation crosses a register boundary.

No, this just isn't true in general - if a device has trouble with bulk
reads it needs to set use_sigle_rw in the config to disable them.
Device limitations with bulk reads are a per device thing and are
orthogonal to the value size, being more to do with the age and quality
of the register map implementation than anything else.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[RFT PATCH] regmap-i2c: Only use I2C_FUNC_I2C if val_bits == 8 Guenter Roeck <linux@roeck-us.net> - 2016-06-25 05:00 +0200
  Re: [RFT PATCH] regmap-i2c: Only use I2C_FUNC_I2C if val_bits == 8 Mark Brown <broonie@kernel.org> - 2016-06-25 13:40 +0200
    Re: [RFT PATCH] regmap-i2c: Only use I2C_FUNC_I2C if val_bits == 8 Guenter Roeck <linux@roeck-us.net> - 2016-06-25 17:10 +0200

csiph-web