Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752647AbcDUWAM (ORCPT ); Thu, 21 Apr 2016 18:00:12 -0400 Received: from mail-ob0-f182.google.com ([209.85.214.182]:33531 "EHLO mail-ob0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751240AbcDUWAJ (ORCPT ); Thu, 21 Apr 2016 18:00:09 -0400 MIME-Version: 1.0 In-Reply-To: <1461074137-23899-1-git-send-email-david.wu@rock-chips.com> References: <1458147438-62387-3-git-send-email-david.wu@rock-chips.com> <1461074137-23899-1-git-send-email-david.wu@rock-chips.com> Date: Fri, 22 Apr 2016 01:00:08 +0300 Message-ID: Subject: Re: [PATCH v6] i2c: rk3x: add i2c support for rk3399 soc From: Andy Shevchenko To: David Wu Cc: =?UTF-8?Q?Heiko_St=C3=BCbner?= , Wolfram Sang , Doug Anderson , Tao Huang , Lin Huang , Jianqun Xu , Chris Zhong , Eddie Cai , linux-arm Mailing List , linux-rockchip@lists.infradead.org, linux-i2c@vger.kernel.org, "linux-kernel@vger.kernel.org" , David Wu Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 970 Lines: 26 On Tue, Apr 19, 2016 at 4:55 PM, David Wu wrote: > From: David Wu > > - new method to caculate i2c timings for rk3399: > There was an timing issue about "repeated start" time at the I2C > controller of version0, controller appears to drop SDA at .875x (7/8) > programmed clk high. On version 1 of the controller, the rule(.875x) > isn't enough to meet tSU;STA > requirements on 100k's Standard-mode. To resolve this issue, > sda_update_config, start_setup_config and stop_setup_config for I2C > timing information are added, new rules are designed to calculate > the timing information at new v1. > - pclk and function clk are separated at rk3399. > - support i2c highspeed mode: 1.7MHz for rk3399 > Remove redundant parens in cases like 1. x * (a->b) 2. x = (a + b); Don't touch pieces of code that are not related (you removed one empty line without any reason). -- With Best Regards, Andy Shevchenko