Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6853484ybf; Fri, 6 Mar 2020 05:52:37 -0800 (PST) X-Google-Smtp-Source: ADFU+vvOhsCOGcBGOiGl+L4i/ZH2EVDemb4i2St6ZNLI9zTP1BDx/HZubgrwePFu7zDafCUoFFne X-Received: by 2002:a9d:4c87:: with SMTP id m7mr2544058otf.303.1583502757321; Fri, 06 Mar 2020 05:52:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583502757; cv=none; d=google.com; s=arc-20160816; b=FbRQzAllTFWLlLlIc5KfxRY0SPxDBQvdeAtuKKOvKjwr/k1fn/gNxUXnDtaq0NU70G Yj0pt8BdVO0T1tUp2aqK46TejdMtr5oS9QDJnQHLknzdfKEPgklF1e9iNq4gx3zQYd7i s2Czw8mWB4Z4yxh+/htdxDBiweM/Vh7ZZ55vNs+9OyKmPE+8F4vv72X+Yb2KnRQ7VmGq F1oT+sVn/c6xMuEIKcuQmUNbfIGYNQeYo9dtRJvQIbsCpK8gZHYHfKKAldllLbv+FaR4 ga43rHuemvEaRJqN8NAJFNor40u/0atBnTPLYVG+ZPzEJK9tQuIziNzxDjZYIurKArRd WWPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=R2Sn6IX1uPhTLAXSnbERBwsxCEM27vV2bIpSnFzvm0I=; b=d3Wj8OXBKYPDwjA3sDiU9EkiAkig1QA6YTa4G3hh93CEPrGeFW3lZkJuazBNd2wXOQ O2oYE7mcgdR6ne9PMkWKMHDqPFcyCaURetv9InutttGxNNudV7EEPVGPqgFNixjxok5l 8sV5ucvqsOzpT95JIlrDmqy+SkziIp41BRT1fsPvv5dWIRadnKUMIrd1a+bTEvwsp/xM xu+YthIhDgfA1L9fnvFG80HmyPwkR0ZVubj7blj7kGMyXyHK347BKPpJFopHR11fLwU7 fEvZC5Xyy3wzPhSNSnskQMwyNrJLsLuA4vPxo53qCCjhT0RcfF7JEclXts9wHJAEM50B zB4A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x24si1435209otq.261.2020.03.06.05.52.25; Fri, 06 Mar 2020 05:52:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726811AbgCFNvf (ORCPT + 99 others); Fri, 6 Mar 2020 08:51:35 -0500 Received: from mga17.intel.com ([192.55.52.151]:41270 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726090AbgCFNvf (ORCPT ); Fri, 6 Mar 2020 08:51:35 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Mar 2020 05:51:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,522,1574150400"; d="scan'208";a="441945932" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga006.fm.intel.com with ESMTP; 06 Mar 2020 05:51:32 -0800 Received: from andy by smile with local (Exim 4.93) (envelope-from ) id 1jADO2-007NDs-A3; Fri, 06 Mar 2020 15:51:34 +0200 Date: Fri, 6 Mar 2020 15:51:34 +0200 From: Andy Shevchenko To: Sergey.Semin@baikalelectronics.ru Cc: Jarkko Nikula , Mika Westerberg , Serge Semin , Alexey Malahov , Thomas Bogendoerfer , Paul Burton , Ralf Baechle , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 6/6] i2c: designware: Add Baikal-T1 SoC I2C controller support Message-ID: <20200306135134.GD1748204@smile.fi.intel.com> References: <20200306131955.12806-1-Sergey.Semin@baikalelectronics.ru> <20200306132348.71E638030793@mail.baikalelectronics.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200306132348.71E638030793@mail.baikalelectronics.ru> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 06, 2020 at 04:19:58PM +0300, Sergey.Semin@baikalelectronics.ru wrote: > From: Serge Semin > > A third I2C controller embedded into the Baikal-T1 SoC is also fully > based on the DW APB I2C core, but its registers are indirectly > accessible via "command/data in/data out" trio. There is no difference > other than that. So in order to have that controller supported by the > common DW APB I2C driver we only need to introduce a new flag > ACCESS_INDIRECT and use the access-registers to reach the I2C controller > normal registers space in the dw_readl/dw_writel methods. Currently this > flag is only enabled for the controllers with "be,bt1-i2c" compatible > string. See my response to cover letter. > drivers/i2c/busses/i2c-designware-common.c | 79 ++++++++++++++++++--- > drivers/i2c/busses/i2c-designware-core.h | 14 ++++ > drivers/i2c/busses/i2c-designware-master.c | 1 + > drivers/i2c/busses/i2c-designware-platdrv.c | 1 + > drivers/i2c/busses/i2c-designware-slave.c | 1 + This should be split at least to two patches (preparation in the core followed by switching users). -- With Best Regards, Andy Shevchenko