Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp301001ybm; Tue, 26 May 2020 17:33:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxovLz43YPXr43LnU2mLVaNYbMdB0TvuhrVwwqRj54uvoJWC3wGLqjiXYX87mihUhxb6MAc X-Received: by 2002:a17:906:7c4e:: with SMTP id g14mr3526876ejp.353.1590539587896; Tue, 26 May 2020 17:33:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590539587; cv=none; d=google.com; s=arc-20160816; b=F22uWoIZD+GCpbv0ppt+764qnkmcgvJVK8b3DLePsJU11uCwunu2xDwmc2ZkNqM7nw T/GYgLhkEgM4p38iW2HLBsGkJQA5r0BCQobymvuMNWKCNIcsYMxIbfdjIvlUx3I3KbaE BFYQaYpvvwXFX6hGejvvRrqYXtI6czCpFS9/jwRxVzmXVrsjTfkaOY6epLd5353AaRAM WIp5on0J8k7JxAKi+6NTzTWG4DO8f2+suLjq+SSVSHC49aKf6zzxAXk+hNcYwJCjoebc UnIbut6SI4R3XHWw09H0Vck5HY6ge1CoF2Mko/+Fwc9mSIptYFWsjNIEWWSE/0C0DzwS buOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=giSe9RJ9mffpsHnzOkntdMsIZTN83LhpCC3lthFB7AM=; b=rQ59pnwiGqGjivaEOIK5vlyfjFUJ7tR1M0YmGGUgGQ23MZuehZ8yUT85UhAyxptVAm DeRwef4Hf0BEz4VYh9Sdht2gWUc6Sex+5jNAR2qvweN0YO/dURzCflD7WOUvuyh3GeUP 64tQv9Shy5yM8h4fyl/cM8YerdokEbBsmafxYLQnlKh4vDAhgdjk+VV2N6RMLsSdfnDw LWkxUTVibWKGoiUSP2vqBx3ntCchtAEDmuCXRM8gsnj1uPPyqH3N09tNWCpmqzf8I7DS G+rPGKXH+RaUCPtKgdixE9eOB5yQ33RlSRe8qsCw1fbW6eHVWfATuq+Si2aNqmgl6Eul 9h6Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z7si262046edm.85.2020.05.26.17.32.45; Tue, 26 May 2020 17:33:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403805AbgEZUi7 (ORCPT + 99 others); Tue, 26 May 2020 16:38:59 -0400 Received: from mail.baikalelectronics.com ([87.245.175.226]:59716 "EHLO mail.baikalelectronics.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389796AbgEZUi6 (ORCPT ); Tue, 26 May 2020 16:38:58 -0400 Received: from localhost (unknown [127.0.0.1]) by mail.baikalelectronics.ru (Postfix) with ESMTP id A1EA3803086D; Tue, 26 May 2020 20:38:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at baikalelectronics.ru Received: from mail.baikalelectronics.ru ([127.0.0.1]) by localhost (mail.baikalelectronics.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PLU6O22MkyEn; Tue, 26 May 2020 23:38:54 +0300 (MSK) Date: Tue, 26 May 2020 23:38:52 +0300 From: Serge Semin To: Jarkko Nikula CC: Serge Semin , Andy Shevchenko , Mika Westerberg , Alexey Malahov , Thomas Bogendoerfer , Paul Burton , Ralf Baechle , Rob Herring , Frank Rowand , , , Wolfram Sang , "Rafael J. Wysocki" , Hanjun Guo , Hans de Goede , , Subject: Re: [PATCH v2 08/12] i2c: designware: Introduce platform drivers glue layer interface Message-ID: <20200526203852.bxgibrqb7lrumfnh@mobilestation> References: <20200306132001.1B875803087C@mail.baikalelectronics.ru> <20200510095019.20981-1-Sergey.Semin@baikalelectronics.ru> <20200510095019.20981-9-Sergey.Semin@baikalelectronics.ru> <4950bb1e-302f-947e-1924-452a8169b504@linux.intel.com> <20200521023735.mja62ujmxebgwyef@mobilestation> <80cf1d67-5de1-f3f1-27a0-b88cc105b228@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <80cf1d67-5de1-f3f1-27a0-b88cc105b228@linux.intel.com> X-ClientProxiedBy: MAIL.baikal.int (192.168.51.25) To mail (192.168.51.25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 25, 2020 at 04:16:05PM +0300, Jarkko Nikula wrote: > Hi > > On 5/21/20 5:37 AM, Serge Semin wrote: > > On Wed, May 20, 2020 at 03:46:11PM +0300, Jarkko Nikula wrote: > > > Hi > > > > > > On 5/10/20 12:50 PM, Serge Semin wrote: > > > > Seeing the DW I2C platform driver is getting overcomplicated with a lot of > > > > vendor-specific configs let's introduce a glue-layer interface so new > > > > platforms which equipped with Synopsys Designware APB I2C IP-core would > > > > be able to handle their peculiarities in the dedicated objects. > > > > > > > Comment to this patch and patches 9/12 and 12/12: > > > > > > Currently i2c-designware-platdrv.c is about 500 lines of code so I don't > > > think it's too overcomplicated. But I feel we have already too many Kconfig > > > options and source modules for i2c-designware and obviously would like to > > > push back a little from adding more. > > > > > > I don't think i2c-designware-platdrv.c becomes yet too complicated if Baikal > > > related code is added there, perhaps under #ifdef CONFIG_OF like MSCC Ocelot > > > code is currently. > > > > Well, it's up to you to decide, what solution is more suitable for you to > > maintain. My idea of detaching the MSCC and Baikal-T1 code to the dedicated > > source files was to eventually move the whole i2c-designware-* set of files > > into a dedicated directory drivers/i2c/buses/dw as it's done for some others > > Synopsys DesignWare controllers: drivers/pci/controller/dwc/, drivers/usb/dwc2, > > drivers/usb/dwc3, drivers/net/ethernet/synopsys/ . If you think, that it's too > > early for Dw I2C code to live in a dedicated directory, fine with me. I can > > merge the MSCC and Baikal-T1 code back into the i2c-designware-platdrv.c . > > So what's your final word in this matter? > > > I think sub directory decision under each subsystem is more subsystem rather > than vendor/driver specific. Good point anyway. > > For this patchset I'd like more if changes are done to > i2c-designware-platdrv.c since it's not too complicated yet :-) > > If it starts to look too messy in the future then it's time split I think. Ok. I'll merge the MSCC back and add Baikal-T1 System I2C support into the DW I2C platform driver. -Sergey > > Jarkko