Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp283394ybm; Thu, 28 May 2020 02:39:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHqh6oAcGY4YeQqPm8PFBaonW09zAxipY/rLEa8JhUFOE09KaIrHEir+RpqWvLtYKsTLaA X-Received: by 2002:a17:906:eb43:: with SMTP id mc3mr2272037ejb.549.1590658749943; Thu, 28 May 2020 02:39:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590658749; cv=none; d=google.com; s=arc-20160816; b=RnH7rd1J+xientm1R8yAXJNSRWzqdXrRgRSNDOZA74bbNXwGrahO4l3GwJGhKe2Jne RY85r57GCNXe5dFOxI2hQsmWjlc8lRRWQeMFK/vciEeB5B+mgMJoUwlW9Z9RMy4kN3Wl 6+DYQstYavxA2BgzKDeuDKagc/jJfTaTCf/rqes03hfD8RIWy9UVxjIqdnFCCKyenU5p YiEZk3fTiz9XyFx11xxW+qQdi0//VVNMeoWOGvqfWfVJPwuQWcf6aZ+QyAl3R4boSHj8 DkadYtFGvyDv8Qi8L+S8LXPzLA/+0V6UnvvJPlJYX5o9g/xcPN4DhfOv7EiHEGmsqcSE w0bw== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=R3e042nVzjsgBjYm59ELJVR/FBHLINfJa1ozI6oGUu0=; b=uGWSrL1COSNLEkX+LO3Kajx47cl0w+yGFDk4TVt9DkYhUhqkXqGK9rDLrErCcONDWv W6W2g47lcsRhIa4FIuhwEQzKa8K3OD19jRI2HwO3ozue6jeSzAozN+wPeEmU9BrrSm1+ QTumOI9D+aX0InbaBe1jI4DHnlP/QKVSZQYT8UIwMB5MEsFUXgex2ZAZZI3QXP04QPMB i6f6kGNOrmNcBU8eQExkPB4P8I1zvInH3Ean0cO+vKxMDB9IrsOR/I9lk99L4mPO2lFa +X+dP45VHjkZTM3cb87+41W7Cg310pYKmjveWoXwk8FWE12fmsifPnNbkvk/YR/iySNO dK1w== 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 me17si3376255ejb.410.2020.05.28.02.38.46; Thu, 28 May 2020 02:39:09 -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 S2387587AbgE1JeT (ORCPT + 99 others); Thu, 28 May 2020 05:34:19 -0400 Received: from mail.baikalelectronics.com ([87.245.175.226]:40576 "EHLO mail.baikalelectronics.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387410AbgE1Jdf (ORCPT ); Thu, 28 May 2020 05:33:35 -0400 Received: from localhost (unknown [127.0.0.1]) by mail.baikalelectronics.ru (Postfix) with ESMTP id F214680307FF; Thu, 28 May 2020 09:33:31 +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 u0acitCZOxcY; Thu, 28 May 2020 12:33:31 +0300 (MSK) From: Serge Semin To: Jarkko Nikula , Wolfram Sang CC: Serge Semin , Serge Semin , Andy Shevchenko , Alexey Malahov , Thomas Bogendoerfer , Mika Westerberg , Rob Herring , , , , Subject: [PATCH v6 06/11] i2c: designware: Add Baytrail sem config DW I2C platform dependency Date: Thu, 28 May 2020 12:33:16 +0300 Message-ID: <20200528093322.23553-7-Sergey.Semin@baikalelectronics.ru> In-Reply-To: <20200528093322.23553-1-Sergey.Semin@baikalelectronics.ru> References: <20200528093322.23553-1-Sergey.Semin@baikalelectronics.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII 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 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. Let's move the config definition to be below the I2C_DESIGNWARE_PLATFORM config and mark it with "depends on I2C_DESIGNWARE_PLATFORM" statement. 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 Reviewed-by: Andy Shevchenko Cc: Alexey Malahov Cc: Thomas Bogendoerfer Cc: Mika Westerberg Cc: Rob Herring Cc: linux-mips@vger.kernel.org Cc: devicetree@vger.kernel.org --- Changelog v3: - Replace if-endif clause around the I2C_DESIGNWARE_BAYTRAIL config with "depends on" operator. --- drivers/i2c/busses/Kconfig | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig index 7f92f6a96042..7cd279c36898 100644 --- a/drivers/i2c/busses/Kconfig +++ b/drivers/i2c/busses/Kconfig @@ -549,20 +549,10 @@ config I2C_DESIGNWARE_PLATFORM This driver can also be built as a module. If so, the module will be called i2c-designware-platform. -config I2C_DESIGNWARE_PCI - tristate "Synopsys DesignWare PCI" - depends on PCI - select I2C_DESIGNWARE_CORE - help - If you say yes to this option, support will be included for the - Synopsys DesignWare I2C adapter. Only master mode is supported. - - This driver can also be built as a module. If so, the module - will be called i2c-designware-pci. - config I2C_DESIGNWARE_BAYTRAIL bool "Intel Baytrail I2C semaphore support" depends on ACPI + depends on I2C_DESIGNWARE_PLATFORM depends on (I2C_DESIGNWARE_PLATFORM=m && IOSF_MBI) || \ (I2C_DESIGNWARE_PLATFORM=y && IOSF_MBI=y) help @@ -572,6 +562,17 @@ config I2C_DESIGNWARE_BAYTRAIL the platform firmware controlling it. You should say Y if running on a BayTrail system using the AXP288. +config I2C_DESIGNWARE_PCI + tristate "Synopsys DesignWare PCI" + depends on PCI + select I2C_DESIGNWARE_CORE + help + If you say yes to this option, support will be included for the + Synopsys DesignWare I2C adapter. Only master mode is supported. + + This driver can also be built as a module. If so, the module + will be called i2c-designware-pci. + config I2C_DIGICOLOR tristate "Conexant Digicolor I2C driver" depends on ARCH_DIGICOLOR || COMPILE_TEST -- 2.26.2