Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1039629ybk; Wed, 20 May 2020 19:39:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7vPJY9bIUEl1oeTzPAlp/DX08DLbHhcAcVkxlBpClGPLnDNckehUkypFsdRQ9REuqEj+i X-Received: by 2002:a05:6402:c11:: with SMTP id co17mr6195740edb.218.1590028783596; Wed, 20 May 2020 19:39:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590028783; cv=none; d=google.com; s=arc-20160816; b=bDlRa1LsF8gX3/vtrSRBPe8CJ/WYT3/vRKCHnlQfVfY1LujjlpQWD5BXTnhtRwwiwa m0k5wQeG4UpkC6sPwUKdqsJd8w6XJ6WGDfxgm5FgNfxDHThC6gzNz6S9U1KJ/e832XJ4 r9lQClmGI79PMX3DbO5/tXpBQAiIhnI/ItSuNg+0DKO94BPWF+HUFTa7kqm+bx+3PsVT qc1j7SXP9ihkzoYkKmVHeBn50ZAelCj4J3nbjX4lI2Q+zPk081G1qpLZJioXD0Zc/plJ ey5exYX7wWWh3Wlm9DlhtWzA1I962F1d6qCW1u7oXk3iWCjcHfNWfEmNyfkOp2F/fHd0 H6FQ== 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=I5aR3t4xjS4+bybogw4hA4tINSNwoqeSTjXW4NmlNIY=; b=T2CkFCPOjsVmUFOjxEx7I97lvBIwmk0RyLoQa58bKtXWHHZgyb7PaPzqvW7xPLYiOB j8kiwroYyhi46//3tjJJhKjnCTvP74xU5TetjQ5sz3m0s7WwdxtHpJdXiLja3c4EQbvX 0fVEnObvg711sssza1dTgmKJijYiGprRwfHaOCxVteRySYymKHBuXczbgw2cldD0cLZx K6P8TFf+yOrUGx1WNmZCXxPXwu7m0F0MaxPWfBr3bArfHAOTDIEjDReDkoGgeGleyiAH DRRoRueqHn3jgLO7PdDI5NeZlTuonn3aZ4ZebCI7HynbEzAQKcXwy/5qalZtQp9Ka3yr 6u9A== 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 a13si2483015edb.423.2020.05.20.19.39.17; Wed, 20 May 2020 19:39:43 -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 S1727915AbgEUChk (ORCPT + 99 others); Wed, 20 May 2020 22:37:40 -0400 Received: from mail.baikalelectronics.com ([87.245.175.226]:34470 "EHLO mail.baikalelectronics.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726833AbgEUChk (ORCPT ); Wed, 20 May 2020 22:37:40 -0400 Received: from localhost (unknown [127.0.0.1]) by mail.baikalelectronics.ru (Postfix) with ESMTP id 5C29180307CB; Thu, 21 May 2020 02:37:37 +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 iiCsY7-X5QfY; Thu, 21 May 2020 05:37:36 +0300 (MSK) Date: Thu, 21 May 2020 05:37:35 +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: <20200521023735.mja62ujmxebgwyef@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> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <4950bb1e-302f-947e-1924-452a8169b504@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 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? -Sergey > > -- > Jarkko