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


Groups > linux.kernel > #1439874

Re: [PATCH] i2c: imx: add retries for i2c-0 on Ventana boards

From Wolfram Sang <wsa@the-dreams.de>
Newsgroups linux.kernel
Subject Re: [PATCH] i2c: imx: add retries for i2c-0 on Ventana boards
Date 2016-07-09 04:40 +0200
Message-ID <rSQlr-578-1@gated-at.bofh.it> (permalink)
References <rSi0p-7C9-3@gated-at.bofh.it> <rSxst-13j-1@gated-at.bofh.it> <rSJWF-Gh-1@gated-at.bofh.it> <rSLc6-1Ig-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

> > The issue I have is that the i2c device emulates several other devices
> > with existing drivers (pca953x, ds1672, at24) and those drivers don't
> > have any retry mechanism in place for a retry.
> > 
> > Maybe if I converted those drivers to use regmap I could implement a
> > regmap with retries in the mfd driver for my device?
> 
> Wolfram: what do you think?

What NAK means is device specific IMO, so to do it generally at regmap
level is convenient but wrong. at24 already has retry support because it
may be accessed while in an erase cycle. I don't know the other devices.
You need to discuss with the driver authors/maintainers if a NAK can
generally mean "let's retry" or if you need a seperate i2c_device_id for
your variant which then handles the NAK differently.

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


Thread

[PATCH] i2c: imx: add retries for i2c-0 on Ventana boards Tim Harvey <tharvey@gateworks.com> - 2016-07-07 16:00 +0200
  Re: [PATCH] i2c: imx: add retries for i2c-0 on Ventana boards Uwe Kleine-König   <u.kleine-koenig@pengutronix.de> - 2016-07-08 08:30 +0200
    Re: [PATCH] i2c: imx: add retries for i2c-0 on Ventana boards Tim Harvey <tharvey@gateworks.com> - 2016-07-08 21:50 +0200
      Re: [PATCH] i2c: imx: add retries for i2c-0 on Ventana boards Uwe Kleine-König   <u.kleine-koenig@pengutronix.de> - 2016-07-08 23:10 +0200
        Re: [PATCH] i2c: imx: add retries for i2c-0 on Ventana boards Wolfram Sang <wsa@the-dreams.de> - 2016-07-09 04:40 +0200

csiph-web