Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp98551ybm; Tue, 26 May 2020 11:44:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzugnwGCHvQdVLYwUEW1dk/BQM5e0LzNKCMN63Nj6TKIfMh1uHMspDLzhvhV3/rIf5umSop X-Received: by 2002:a17:906:f1c3:: with SMTP id gx3mr2292858ejb.278.1590518670839; Tue, 26 May 2020 11:44:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590518670; cv=none; d=google.com; s=arc-20160816; b=oASn1mMwug0iHtQrPP+KKMzXYEdYzZ5bRZaOAHoA4ysXDWLNTo0adshSQdUACa6BsY tZAXr7za/MGNirtsiSeh4hwU0S9mUKGhIkYEIF6MPiIpIY8ONIWXg8Fy8HcZxVpqayT2 JXhJuJm2h+wfahPTiT7hhFT8cTrXJvB2mlOhetcW2kuOsxGjvGgd+AQiWtnxXhmJWkKQ MCwTBWGAErtDKpGLMCpg4rdytwsWTwdtbo2+l1oIq876SFPYnCwxCGPM6mfLVxYSZxTm SF2UBmUzDfqU9s10zWl/4LqVstK0PzjsUJAlSLp1DASDlKNT/VoLPXrn6V+wNNosgde1 b5sA== 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=3ee5Hs/SbaIaWzjz3yxVshrBZl7OmWEDcShfYcOOLpw=; b=nJwa7cIKTHbILgyBNbsCAGHdblsnKeSJ+ZnXYlx44VZ7E64lCw2540kQraWRlCA7La S2suYP0Sz55OfIGtyJop8FnFdxr1gmLODE1F60BvMj0oIlZjKCMWew1GCUbz7Mq6zpY7 zOdy7UDpbO2a3HANCrKI/ucjE8DA5kZ9XJ+BoCQp/gxd1sYJQ4pFSyfC/DmpUAp92bl5 hWuq1JiaEnjdmrS8VY0srHVkxswXH5XSZtcXQAnCD4eiEl4wasY/PsN8/rGGGr8s8Doi 0O+DRLY2SDso3be4UkSJz+wDvzZoid3cqXfIY/2PNlJPJQYp6WdDdyHPN1wQ5r9kCuvW MaUg== 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 u9si363629ejb.268.2020.05.26.11.44.06; Tue, 26 May 2020 11:44:30 -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 S2389085AbgEZSkS (ORCPT + 99 others); Tue, 26 May 2020 14:40:18 -0400 Received: from mail.baikalelectronics.com ([87.245.175.226]:59486 "EHLO mail.baikalelectronics.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387399AbgEZSkS (ORCPT ); Tue, 26 May 2020 14:40:18 -0400 Received: from localhost (unknown [127.0.0.1]) by mail.baikalelectronics.ru (Postfix) with ESMTP id F347F8030869; Tue, 26 May 2020 18:40:14 +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 2o6nlMTIy_Dv; Tue, 26 May 2020 21:40:13 +0300 (MSK) Date: Tue, 26 May 2020 21:40:11 +0300 From: Serge Semin To: Jarkko Nikula CC: Serge Semin , Alexey Malahov , Thomas Bogendoerfer , Paul Burton , Ralf Baechle , Andy Shevchenko , Mika Westerberg , Wolfram Sang , Rob Herring , Frank Rowand , , , Wolfram Sang , Jean Delvare , Krzysztof Kozlowski , Max Staudt , Stefan Roese , , Subject: Re: [PATCH v2 07/12] i2c: designware: Move Baytrail sem config to the platform if-clause Message-ID: <20200526184011.rjpkpuk6nxuksyct@mobilestation> References: <20200306132001.1B875803087C@mail.baikalelectronics.ru> <20200510095019.20981-1-Sergey.Semin@baikalelectronics.ru> <20200510095019.20981-8-Sergey.Semin@baikalelectronics.ru> <20200521022215.ubvhuop47aflqkkb@mobilestation> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: 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:01:26PM +0300, Jarkko Nikula wrote: > On 5/21/20 5:22 AM, Serge Semin wrote: > > On Wed, May 20, 2020 at 03:16:14PM +0300, Jarkko Nikula wrote: > > > On 5/10/20 12:50 PM, Serge Semin wrote: > > > > Currently Intel Baytrail I2C semaphore is a feature of the DW APB I2C > > > > platform driver. It's a bit confusing to see it's config in the menu at > > > > some separated place with no reference to the platform code. Lets move the > > > > config definition under the if-I2C_DESIGNWARE_PLATFORM clause. By doing so > > > > the config menu will display the feature right below the DW I2C platform > > > > driver item and will indent it to the right so signifying its belonging. > > > > > > > > Signed-off-by: Serge Semin > > > > Cc: Alexey Malahov > > > > Cc: Thomas Bogendoerfer > > > > Cc: Paul Burton > > > > Cc: Ralf Baechle > > > > Cc: Andy Shevchenko > > > > Cc: Mika Westerberg > > > > Cc: Wolfram Sang > > > > Cc: Rob Herring > > > > Cc: Frank Rowand > > > > Cc: linux-mips@vger.kernel.org > > > > Cc: devicetree@vger.kernel.org > > > > --- > > > > drivers/i2c/busses/Kconfig | 30 +++++++++++++++++------------- > > > > 1 file changed, 17 insertions(+), 13 deletions(-) > > > > > > > > diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig > > > > index 368aa64e9266..ed6927c4c540 100644 > > > > --- a/drivers/i2c/busses/Kconfig > > > > +++ b/drivers/i2c/busses/Kconfig > > > > @@ -530,8 +530,8 @@ config I2C_DESIGNWARE_CORE > > > > config I2C_DESIGNWARE_PLATFORM > > > > tristate "Synopsys DesignWare Platform" > > > > - select I2C_DESIGNWARE_CORE > > > > depends on (ACPI && COMMON_CLK) || !ACPI > > > > + select I2C_DESIGNWARE_CORE > > > > help > > > > If you say yes to this option, support will be included for the > > > > Synopsys DesignWare I2C adapter. > > > > @@ -539,6 +539,22 @@ config I2C_DESIGNWARE_PLATFORM > > > > This driver can also be built as a module. If so, the module > > > > will be called i2c-designware-platform. > > > > +if I2C_DESIGNWARE_PLATFORM > > > > + > > > > +config I2C_DESIGNWARE_BAYTRAIL > > > > + bool "Intel Baytrail I2C semaphore support" > > > > + depends on ACPI > > > > + depends on (I2C_DESIGNWARE_PLATFORM=m && IOSF_MBI) || \ > > > > + (I2C_DESIGNWARE_PLATFORM=y && IOSF_MBI=y) > > > > + help > > > > + This driver enables managed host access to the PMIC I2C bus on select > > > > + Intel BayTrail platforms using the X-Powers AXP288 PMIC. It allows > > > > + the host to request uninterrupted access to the PMIC's I2C bus from > > > > + the platform firmware controlling it. You should say Y if running on > > > > + a BayTrail system using the AXP288. > > > > + > > > > +endif # I2C_DESIGNWARE_PLATFORM > > > > + > > > > > > Is the added "if I2C_DESIGNWARE_PLATFORM" needed here? Should the "depends > > > on" be enough? > > > > The idea was to add if-endif clause here for features possibly added sometime > > in future. But using normal "depends on I2C_DESIGNWARE_PLATFORM" shall make > > the config depicted as an indented sub-config as well. Would you like me to > > remove the if-clause and use the depends on operator instead? > > > Yes, please remove it from this patch. Keeps this patch simpler and if some > future feature needs it then that patch(set) is the right place to add it. Agreed. I'll do this in v3. -Sergey > > Jarkko