Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6856540ybf; Fri, 6 Mar 2020 05:56:35 -0800 (PST) X-Google-Smtp-Source: ADFU+vu3OHEfrtK6xCvT+P6aoAtHGAc/3aJm5XV5tXNOhz7woFKISH7hEAgwlHjJchVgpvlztZXr X-Received: by 2002:a05:6830:168d:: with SMTP id k13mr2625786otr.208.1583502995623; Fri, 06 Mar 2020 05:56:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583502995; cv=none; d=google.com; s=arc-20160816; b=EUAb9iE1I5cj1Wr7jDuwclUNiGZ08WSbQXxEnUB8mjRYl2nqxj3zs5iKsMD03EZ1jX LmcUGh9+xhSxuXdF0kqRrPlOfhxU7beUHsjzmkrU3Ay+m8j2H19Gd5jMN3Q6MeonnluF ewX5hPr04aC4PdywTBSAOLYsjKEUHK333ExsbLKultB/t1AIZdB97Xo9h4L6rR83ILIY mgF/XLvga0NZUns2OXnhIjyXGSRQ7TuKBb7SQO7Bc/CiZbnkuFYhMY8zCb2X7fMH1SRb nTeiq11TBpKdqUHGA1EraWYaKyapFThVtJc24TeUK1bPUa+LneR7rJUIJon+9r8tf5oY U1Zw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=W7KYUVZeTKSeHnd/iB5w+XTwGb6BFJfaL5GfLAhFRVA=; b=USQl65YCs+fJ1xoCYFWDZxhk4Pglmwacdqt+D+6eHPJFaz/cPiWMppyeKKfvKR/EPW EryNu7GerL9Mdev8pb4lQusjPRtBKFKj9cpsvrS6A0q7wx7QuVIROSNZt3Qg5CBcmouX j46tID62PfecF7RnqspPxcimRUKjCC//8OsHpjKiM/zh8ztYbVca7uCAfqcx6YrezAd4 eSbnG8vnOwzqsBm3w97CY4ONO65j4yY9pBKflJpu9PaMLxQl4shWHmkR5MT8HpOBHtgT OhaUS9tf/ysWoNRj6fEKtwoYSwDmjdsbYfMkkdIAjoCkKK6lKGyvM7yDVntt7Sa5KY7S lJpA== 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 s4si1348475otd.37.2020.03.06.05.56.22; Fri, 06 Mar 2020 05:56:35 -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 S1726676AbgCFNyt (ORCPT + 99 others); Fri, 6 Mar 2020 08:54:49 -0500 Received: from mga17.intel.com ([192.55.52.151]:41481 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726182AbgCFNys (ORCPT ); Fri, 6 Mar 2020 08:54:48 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Mar 2020 05:54:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,522,1574150400"; d="scan'208";a="287977630" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by FMSMGA003.fm.intel.com with ESMTP; 06 Mar 2020 05:54:43 -0800 Received: from andy by smile with local (Exim 4.93) (envelope-from ) id 1jADR7-007NGR-NA; Fri, 06 Mar 2020 15:54:45 +0200 Date: Fri, 6 Mar 2020 15:54:45 +0200 From: Andy Shevchenko To: Sergey.Semin@baikalelectronics.ru Cc: Serge Semin , Alexey Malahov , Maxim Kaurkin , Pavel Parkhomenko , Ramil Zaripov , Ekaterina Skachko , Vadim Vlasov , Thomas Bogendoerfer , Paul Burton , Ralf Baechle , Jarkko Nikula , Mika Westerberg , Rob Herring , Mark Rutland , Wolfram Sang , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/6] i2c: designeware: Add Baikal-T1 SoC DW I2C specifics support Message-ID: <20200306135445.GE1748204@smile.fi.intel.com> References: <20200306132001.1B875803087C@mail.baikalelectronics.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200306132001.1B875803087C@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 First of all, I got only 3 out of 6 patches. Are you sure you properly prepared the series? On Fri, Mar 06, 2020 at 04:19:49PM +0300, Sergey.Semin@baikalelectronics.ru wrote: > From: Serge Semin Same comment as per DMA series, try next time to link the cover letter to the series correctly. > There are three DW I2C controllers embedded into the Baikal-T1 SoC. Two > of them are normal with standard DW I2C IP-core configurations and registers > accessible over normal MMIO space - so they are acceptable by the available > DW I2C driver with no modification. > But there is a third, which is a bit > different. Its registers are indirectly accessed be means of "command/data > in/data out" registers tuple. In order to have it also supported by the DW > I2C driver, we must modify the code a bit. This is a main purpose of this > patchset. > > First of all traditionally we replaced the legacy plain text-based dt-binding > file with yaml-based one. Then we found and fixed a bug in the DW I2C FIFO size > detection algorithm which tried to do it too early before dw_readl/dw_writel > methods could be used. So far so good (looks like, I think colleagues of mine and myself will review individual patches later on). > Finally we introduced a platform-specific flag > ACCESS_INDIRECT, which would enable the indirect access to the DW I2C registers > implemented for one of the Baikal-T1 SoC DW I2C controllers. See the commit > message of the corresponding patch for details. This is quite questionable. In Intel SoCs we have indirect I?C controllers to access (inside PMIC, for example). The approach used to do that is usually to have an IPC mechanism and specific bus controller driver. See i2c-cht-wc.c for instance. I'm not sure if it makes a lot of duplication and if actually switching I?C DesignWare driver to regmap API will solve it. At least that is the second approach I would consider. But I'll wait others to comment on this. We have to settle the solution before going further. > This patchset is rebased and tested on the mainline Linux kernel 5.6-rc4: > commit 98d54f81e36b ("Linux 5.6-rc4"). `git format-patch --base ...` should do the job. > Signed-off-by: Serge Semin > Signed-off-by: Alexey Malahov Same comment as per UART patch. Who is the Alexey in relation to the work done? -- With Best Regards, Andy Shevchenko