Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp525223ybk; Wed, 20 May 2020 05:48:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9wV9TcgGOAJ7xM/vv14yoZyAdQS0UbzJgCxXIX4NxCRrhhWAK1PvQRd+AX6Kp+Vu9SwFA X-Received: by 2002:a05:6402:1b0f:: with SMTP id by15mr3086774edb.316.1589978888149; Wed, 20 May 2020 05:48:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589978888; cv=none; d=google.com; s=arc-20160816; b=xr6au+MCqUVSu2LLC1FpFPIJ0ZDFgQyOrzbHFi6//jV8Vm5bVuAxkYRqes5TdpJUmP keB3Ed0RuhljGbgkfSlzlGByc4bb0mx6V218lGCmadyDwFOKtckPU9NI37I52QmVn9eb 2xsyZpjWbNNZd6r8WuF38QcnFY5C0RVKc/r9Lg0i7HpjETqoy+yoqyfM860uPwpOJYQd /kef6w87iqF3X/+U+9YIC/HnLR/qXYvy9338JSZn81w9FfhBcs0bZ1+Oz5W0JFGyvDM/ o+Ca1GyXOQV5r2tr/PxTUHFZoSD/wX5n943w1bk46/6ziS/qWY76477bU9OXhvpWQtl9 fjvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:ironport-sdr:ironport-sdr; bh=oRYcD4iD07mM3pY3g5zXIY1zDp8fstTEKdPQnOQNCTw=; b=F5QC9vPbpFHamoLxy1lN++liTtijOTZ7Y0REIM2zwNGiovDHI4XWDuIwkE4T1MEth+ getueWp5B5IKZ1aLNBnELOaC9H3cyXHiDGv6O+8nTFs3kE3qBH+xdq5zGI177mT9pQxh lSsvzPkiOZrvErDZnn17ChWeb/B+wwB6oPwJjfVBOZBug8UdjvvhY53E+nj28cOQQ5qa 8z+T4zyBdkS9vgu1CkZmpRLP2qA9E0dw3NkNI4XRpbaVSGi4HiOCVwPjbEb85RU95TjT rqknRvLGQ1pga/oJ5UY1yS0d2CYBFmj0CkSRw14Jwnp8BAXSYzQFi+BngxWXFdOrE7Lh oiuw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id le4si1810797ejb.193.2020.05.20.05.47.44; Wed, 20 May 2020 05:48:08 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726907AbgETMqV (ORCPT + 99 others); Wed, 20 May 2020 08:46:21 -0400 Received: from mga14.intel.com ([192.55.52.115]:15615 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726435AbgETMqU (ORCPT ); Wed, 20 May 2020 08:46:20 -0400 IronPort-SDR: Eu2VlE2GRbcpXYVXmEuRhA+bOmmeTMOpzOtSTH6faSKoXPkPQuPEtLABpnhZHzIusBO1BxXltE Kh7+Zj1g2+Lg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2020 05:46:16 -0700 IronPort-SDR: V6E/Ng3sk5KplKOJ4ojalPDdqw5sr7/ivO8RmkZKGAyG8bBoS9rBKNudLOOSWl9jP9CFatvZ/G 33VvxL6a2tcQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,414,1583222400"; d="scan'208";a="289337876" Received: from mylly.fi.intel.com (HELO [10.237.72.161]) ([10.237.72.161]) by fmsmga004.fm.intel.com with ESMTP; 20 May 2020 05:46:12 -0700 Subject: Re: [PATCH v2 08/12] i2c: designware: Introduce platform drivers glue layer interface To: Serge Semin , Andy Shevchenko , Mika Westerberg Cc: Serge Semin , Alexey Malahov , Thomas Bogendoerfer , Paul Burton , Ralf Baechle , Rob Herring , Frank Rowand , linux-mips@vger.kernel.org, devicetree@vger.kernel.org, Wolfram Sang , "Rafael J. Wysocki" , Hanjun Guo , Hans de Goede , linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org References: <20200306132001.1B875803087C@mail.baikalelectronics.ru> <20200510095019.20981-1-Sergey.Semin@baikalelectronics.ru> <20200510095019.20981-9-Sergey.Semin@baikalelectronics.ru> From: Jarkko Nikula Message-ID: <4950bb1e-302f-947e-1924-452a8169b504@linux.intel.com> Date: Wed, 20 May 2020 15:46:11 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200510095019.20981-9-Sergey.Semin@baikalelectronics.ru> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Jarkko