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


Groups > linux.kernel > #1395471

Re: [PATCH v7 9/9] i2c: rk3x: support fast-mode plus for rk3399

From Doug Anderson <dianders@chromium.org>
Newsgroups linux.kernel
Subject Re: [PATCH v7 9/9] i2c: rk3x: support fast-mode plus for rk3399
Date 2016-05-06 01:10 +0200
Message-ID <rvAz8-1bh-29@gated-at.bofh.it> (permalink)
References <rv5OG-5wR-9@gated-at.bofh.it> <rv682-5L8-31@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


David,

On Wed, May 4, 2016 at 7:37 AM, David Wu <david.wu@rock-chips.com> wrote:
> Signed-off-by: David Wu <david.wu@rock-chips.com>
> ---
>  drivers/i2c/busses/i2c-rk3x.c | 21 +++++++++++++++++----
>  1 file changed, 17 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/i2c/busses/i2c-rk3x.c b/drivers/i2c/busses/i2c-rk3x.c
> index 47368c4..c66cc39 100644
> --- a/drivers/i2c/busses/i2c-rk3x.c
> +++ b/drivers/i2c/busses/i2c-rk3x.c
> @@ -124,6 +124,17 @@ static const struct i2c_spec_values fast_mode_spec = {
>         .min_hold_buffer_ns = 1300,
>  };
>
> +static const struct i2c_spec_values fast_mode_plus_spec = {
> +       .min_hold_start_ns = 260,
> +       .min_low_ns = 500,
> +       .min_high_ns = 260,
> +       .min_setup_start_ns = 260,
> +       .max_data_hold_ns = 400,

I'm curious where you got the data_hold_ns.  I can't quite remember
what this parameter does / how the timing function works anymore, but
the doc I have (search for UM10204 and click the first link) shows
values for Standard-mode and Fast-mode but not Fast-mode Plus.  It
seems to imply that this is a bit of a bogus number anyway because it
only matters if we don't stretch the tLOW to go along with the longer
data hold.

As I have said in the previous patch, how all this stuff works has
totally left my brain, so if you understand it that's probably good
enough.  If you feel like I should try to re-understand this again so
I can review it more deeply, let me know.


Since I assume that you had some sane reason to include max_data_hold_ns:

Reviewed-by: Douglas Anderson <dianders@chromium.org>

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


Thread

[PATCH v7 0/9] add i2c driver supported for rk3399 David Wu <david.wu@rock-chips.com> - 2016-05-04 16:30 +0200
  [PATCH v7 6/9] i2c: rk3x: Move spec timing data to "static const" structs David Wu <david.wu@rock-chips.com> - 2016-05-04 16:40 +0200
    Re: [PATCH v7 6/9] i2c: rk3x: Move spec timing data to "static const" structs Doug Anderson <dianders@chromium.org> - 2016-05-06 01:00 +0200
      Re: [PATCH v7 6/9] i2c: rk3x: Move spec timing data to "static const"  structs "David.Wu" <david.wu@rock-chips.com> - 2016-05-06 07:00 +0200
  [PATCH v7 9/9] i2c: rk3x: support fast-mode plus for rk3399 David Wu <david.wu@rock-chips.com> - 2016-05-04 16:40 +0200
    Re: [PATCH v7 9/9] i2c: rk3x: support fast-mode plus for rk3399 Doug Anderson <dianders@chromium.org> - 2016-05-06 01:10 +0200
      Re: [PATCH v7 9/9] i2c: rk3x: support fast-mode plus for rk3399 "David.Wu" <david.wu@rock-chips.com> - 2016-05-06 04:20 +0200
  [PATCH v7 5/9] i2c: rk3x: Change SoC data to not use array David Wu <david.wu@rock-chips.com> - 2016-05-04 16:40 +0200
    Re: [PATCH v7 5/9] i2c: rk3x: Change SoC data to not use array Heiko Stübner <heiko@sntech.de> - 2016-05-05 23:40 +0200
    Re: [PATCH v7 5/9] i2c: rk3x: Change SoC data to not use array Doug Anderson <dianders@chromium.org> - 2016-05-06 01:00 +0200
  [PATCH v7 8/9] i2c: rk3x: add i2c support for rk3399 soc David Wu <david.wu@rock-chips.com> - 2016-05-04 16:40 +0200
    Re: [PATCH v7 8/9] i2c: rk3x: add i2c support for rk3399 soc Doug Anderson <dianders@chromium.org> - 2016-05-06 01:10 +0200
      Re: [PATCH v7 8/9] i2c: rk3x: add i2c support for rk3399 soc "David.Wu" <david.wu@rock-chips.com> - 2016-05-06 11:40 +0200
        Re: [PATCH v7 8/9] i2c: rk3x: add i2c support for rk3399 soc Doug Anderson <dianders@chromium.org> - 2016-05-06 20:10 +0200
  [PATCH v7 7/9] dt-bindings: i2c: rk3x: add support for rk3399 David Wu <david.wu@rock-chips.com> - 2016-05-04 16:40 +0200
    Re: [PATCH v7 7/9] dt-bindings: i2c: rk3x: add support for rk3399 Rob Herring <robh@kernel.org> - 2016-05-06 00:20 +0200
      Re: [PATCH v7 7/9] dt-bindings: i2c: rk3x: add support for rk3399 "David.Wu" <david.wu@rock-chips.com> - 2016-05-06 08:10 +0200
    Re: [PATCH v7 7/9] dt-bindings: i2c: rk3x: add support for rk3399 Doug Anderson <dianders@chromium.org> - 2016-05-06 01:10 +0200

csiph-web