From patchwork Wed Apr 4 12:44:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 132815 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp5016409ljb; Wed, 4 Apr 2018 05:46:25 -0700 (PDT) X-Google-Smtp-Source: AIpwx48Aduhx10pNm0oUNVK11aBtV0tsIQBKsZA6sLNtq/4enMbrQZ5OpmUluirLZsUjKt6EY32V X-Received: by 10.98.93.20 with SMTP id r20mr13746675pfb.53.1522845985223; Wed, 04 Apr 2018 05:46:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522845985; cv=none; d=google.com; s=arc-20160816; b=CWCnjeoOnap0N9/oXyo5+rO+UosmScmzcHeY9n6uVacVOcHAqjh2Cav455Uyhec4rx 8cjI6LeKrZ584uprpwKODYJn1A0Pcy0+wKkLR0pzeDXQVMe4SuAE1wFUfwmZgQWp7Udb rb4qcu8yl36PUAzkUYT00v4DcoCbiVzj7kqngK1MWBMruM/Ulmv5W/qYD118vABXcN3S vOhfx6RrOrASjRhF6Klv+STMEG6lHIfzVcT6z+U8rTdEVh5fB2CUC79214uLEMeG0ca5 fS3flwlaSX0AGJ55NUQUOCPD2V4NyWj6ZBqK97EDVK1wbbLpHW9FyKZB1tqwDs4wVd2S QBdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=bYJZyStDdFMhJBns31P45I1ApxGmvWPhv7RZdH0lMZ0=; b=d/3Dss+YMn4IO4XULGR8NwSyO0BvtYyKQlCz1oXewpWuzDSLcKqpEi1SxqobitLXLp gvpgKwS0oP+tItsSd1PPvcYcExkkoHPm+/qGymVy84jsMlji4rtoCm2aeSo0E6MavP4t 3Y+zRvl5l3mH9NwhQ9elkYG7pBO54lPWkWZBaZW/+Zjq7bL/VYKfA8joTtjMLsEZ75/g VfTiaqHTHkg1Rk2HSFN5At3m6Bd0cNbdLdlNv2HmR2xT6XPqgunwLfQ9tdwj0IUtn701 UVXW5V52nfqT2HsZ2SvPAlRpRgwuxe+UhbG5DGaSp8W7lYA8SbkcQo7I+c1Nk58BQv5X +4Lw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h91-v6si3051570pld.716.2018.04.04.05.46.24; Wed, 04 Apr 2018 05:46:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751562AbeDDMqW (ORCPT + 29 others); Wed, 4 Apr 2018 08:46:22 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:60917 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751247AbeDDMqT (ORCPT ); Wed, 4 Apr 2018 08:46:19 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue003 [212.227.15.129]) with ESMTPA (Nemesis) id 0MWONS-1f220a2Pfu-00XcfL; Wed, 04 Apr 2018 14:45:42 +0200 From: Arnd Bergmann To: Thomas Gleixner , Ingo Molnar , x86@kernel.org Cc: Masahiro Yamada , linux-kbuild@vger.kernel.org, Arnd Bergmann , "H. Peter Anvin" , Andrew Morton , linux-kernel@vger.kernel.org Subject: [PATCH] x86: olpc: fix inconsistent MFD_CS5535 configuration Date: Wed, 4 Apr 2018 14:44:54 +0200 Message-Id: <20180404124539.3817101-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:/ZNhyHeyDQY0ULX6e8wEL2IepuLPvaVOxSbBBw+C5mg+zeJ0A6g GD9XOhJ1DSLVGqm6NtLOguIqmKN30eZmcsWWGHZ2b81d1YZdGYlcDWINcWx97ZtPu4FRjf5 FqdewPPO8m8QDsYLTeOakIXozAn4ZkDTfBm8c/p4QQFuRwsBsoYZswIyIC2rBQdqur3rbkH cv2oMd+iqQ2xod77o6yAA== X-UI-Out-Filterresults: notjunk:1; V01:K0:u5cOkHKqAcc=:Wb/TQjg3BcCanjBotQiO8c oSr3H3WMf7hN6qYg6AgjET2byMgLNlwooad5uOCPcucpeEzBA+OSDtNe5Ga+HsLRdCgvT87n1 +aRuB/paHuZS24dYCowcJKNy3mCnhl624n6VH8wVbs9yLBsKdLRVqTUmVoWcrXjIDouvxPiln UkvvyM4inmZn37GyTVapTod1KK7OPAkxm9D3H0kufT6JM44rNysr9YCWwZ+5g1+eaPrqT+h0T wgQOibcndtk5gl3qlzM71tHx3cXGaUgWJYXOBeCrmoIDi6nJpDEANdcLQVT9ZS8LYPqCx3y+u bMi6yR+rSJgTXlN5hPKqsBe+dCMD1cyyFTtgNJemKCaZ9jw1yjRWKh0NJj01iEu9DJnOcoKJN PJiilavbFZ5TWMzmfu5+pz2I03s3KsUGvJ+0L25zDjwSZetdP/MjKRIlSrY8D9UAMURX8I+RT JF/SrA+HXlKh9V/jsrKAhqjRr2Dk525kju+YEbHsFIbRMkW1MUmFz0HirtFOZwa7dZtZ9Vcaf faLE4RisoMT0hq2UssqhCDCeJH2McSttZskTg0LgfDwJ3Z84cBOLav7Z3gwqnx7NkQV0mKH/r xUTvpyI0rbOrcKtTG/fz4R0jpK2srBFHqGWfptZonpMnNoWTvaasxa92lK+6fvj1dFKbPHsLO sj7T5+AUJPjIFcCk9Y43PjTRKYkuntEbyiPr+PIVLBRls/u8tCbks7c1c/5p4F6AtSq705Ez4 vg1mGAIdHRpZs99QhYJAchC9eN5cVfJH3Bf1/w== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This Kconfig warning appeared after a fix to the Kconfig validation. The GPIO_CS5535 driver depends on the MFD_CS5535 driver, but the former is selected in places where the latter is not: WARNING: unmet direct dependencies detected for GPIO_CS5535 Depends on [m]: GPIOLIB [=y] && (X86 [=y] || MIPS || COMPILE_TEST [=y]) && MFD_CS5535 [=m] Selected by [y]: - OLPC_XO1_SCI [=y] && X86_32 [=y] && OLPC [=y] && OLPC_XO1_PM [=y] && INPUT [=y]=y The warning does seem appropriate, since the GPIO_CS5535 driver won't work unless MFD_CS5535 is also present. However, there is no link time dependency between the two, so this caused no problems during randconfig testing before. This changes the 'select GPIO_CS5535' to 'depends on GPIO_CS5535' to avoid the issue, at the expense of making it harder to configure the driver (one now has to select the dependencies first). The 'select MFD_CORE' part is completely redundant, since we already depend on MFD_CS5535 here, so I'm removing that as well. Ideally, the private symbols exported by that cs5535 gpio driver would just be converted to gpiolib interfaces so we could expletely avoid this dependency. Fixes: f622f8279581 ("kconfig: warn unmet direct dependency of tristate symbols selected by y") Signed-off-by: Arnd Bergmann --- arch/x86/Kconfig | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) -- 2.9.0 diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index bf4ddea48e61..ffb2b858e2b1 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -2773,11 +2773,9 @@ config OLPC_XO1_RTC config OLPC_XO1_SCI bool "OLPC XO-1 SCI extras" - depends on OLPC && OLPC_XO1_PM + depends on OLPC && OLPC_XO1_PM && GPIO_CS5535=y depends on INPUT=y select POWER_SUPPLY - select GPIO_CS5535 - select MFD_CORE ---help--- Add support for SCI-based features of the OLPC XO-1 laptop: - EC-driven system wakeups