Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp987323ybk; Sun, 10 May 2020 02:52:52 -0700 (PDT) X-Google-Smtp-Source: APiQypIcfmeRnAMHyTbmDgbVo8DbjzF4tUgNMmLA+Gq1Ut/wDWhluLAsCeFHHv8dItL8C4nWUugm X-Received: by 2002:a50:eb8e:: with SMTP id y14mr8903198edr.270.1589104372520; Sun, 10 May 2020 02:52:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589104372; cv=none; d=google.com; s=arc-20160816; b=05uY3R6wiaAp/eQ60s9ycNaOIV4YRSiyHu4H5GKMxw3493aphcRHd8pFjxzrqBEnDX gK1asljsZSb09W5GjnK4qAj4GKbLr63YZkfs6pGmXnJ/fQvBljoz+tYw1rigAE7LDz40 cMJd3Yq6c/+AFWkNnTUmS2XpivAHIyRr936oyIVW6qgABsihVohuOX/HtreBQn+cqpH2 WDsKDGY7Z7plJbjZZkVaFGav5wGmF2D+PBXR9uUi952R1N3V7q0tqhFuDCvbornEsz7V EzIKa4kLM2CSCjy4oZV8GdqErUJaPV5IagBAd0S9EBMFSNiaRjP6iI7Mnb6bUHT8dEcH nKqw== 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=5LF0SKRErDVL2EyEcnxbhOb+uOkZHvK3uSLO9Wz/XHI=; b=vvXVZpm3RLP7wEx65IYo7dWuIY3VwXRttqVkbKl3A7KsuVXdSSiFdfDkno1Vh8P85q gmzcflMxAjxsNHrp9Y0eLxDpWL8kAMLzj3u2xEEpy1aZR9KMHyX237CqZwYVhAzon8D1 E1o1w8tWGWKj59Gg3hJgm3j9MtUJG9aekHu6gNUAlcRYMv6/07fOhXoFNyxm4EaHihPN fRkEjI0cVt/fcq3M3ctyr5fvJvIeEV1Srr4acaDdT/CB3fAHhjTI+Knb2g/eLZgLYbPK 9pBFT6zhkCMW05HJOTbm3ikE7pQPTI8+Zi05Y0TPJHegnM8j3sAJ3DNy1UDfnEYTl71u pptg== 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 a18si4358731ejy.194.2020.05.10.02.52.29; Sun, 10 May 2020 02:52:52 -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 S1729008AbgEJJux (ORCPT + 99 others); Sun, 10 May 2020 05:50:53 -0400 Received: from mail.baikalelectronics.com ([87.245.175.226]:46048 "EHLO mail.baikalelectronics.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728932AbgEJJuv (ORCPT ); Sun, 10 May 2020 05:50:51 -0400 Received: from localhost (unknown [127.0.0.1]) by mail.baikalelectronics.ru (Postfix) with ESMTP id 94EF48000AF9; Sun, 10 May 2020 09:50:46 +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 vwJi6-PpWck6; Sun, 10 May 2020 12:50:45 +0300 (MSK) From: Serge Semin To: Jarkko Nikula CC: Serge Semin , 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: [PATCH v2 07/12] i2c: designware: Move Baytrail sem config to the platform if-clause Date: Sun, 10 May 2020 12:50:13 +0300 Message-ID: <20200510095019.20981-8-Sergey.Semin@baikalelectronics.ru> In-Reply-To: <20200510095019.20981-1-Sergey.Semin@baikalelectronics.ru> References: <20200306132001.1B875803087C@mail.baikalelectronics.ru> <20200510095019.20981-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. 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 + config I2C_DESIGNWARE_SLAVE bool "Synopsys DesignWare Slave" depends on I2C_DESIGNWARE_CORE @@ -561,18 +577,6 @@ config I2C_DESIGNWARE_PCI 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=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. - config I2C_DIGICOLOR tristate "Conexant Digicolor I2C driver" depends on ARCH_DIGICOLOR || COMPILE_TEST -- 2.25.1