From patchwork Fri Jul 12 08:54:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 168908 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp584730ilk; Fri, 12 Jul 2019 01:54:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqzq6iO23nrPUZX+ldwlG+V2/LF/MiiXpRY1RNojJDBGML5yCNO/GHZi9igzKTGyPAYGeYZU X-Received: by 2002:a63:e907:: with SMTP id i7mr9388597pgh.84.1562921696367; Fri, 12 Jul 2019 01:54:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562921696; cv=none; d=google.com; s=arc-20160816; b=KzhknA/Elp7rOjei5g2gbvgfdGTyP+BfLGSaPFZo9i5xI22rOuSmNpMMJmcynBJCpm nQpAbyl1sZKXd+KZGCYO+eHpUsVQs7Gq7Ve/AXUnCmPjtbpynt3mQNOYXaQ+9rjkGWYp BgWKaJmq2u4gHfz9qKlFDECNEE7gzEArbcmOKUVotOvCUmNBmugSXfcBOrMiZ4Z/s5b4 Fz+f92hJnYbYJeuAsDiuF943Q/ar7yu9A8KddTqaHnCCFCIAl8RHpzuj8VLlIAEF9VKo uH6ThOADpFOYpNxhAqQcRZzy0uxhSGziBfbMx6tAJp83MyMG0Un8cOQsMw4svzShLwQb CPbg== 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 :message-id:date:subject:cc:to:from; bh=oRGbzc7YpxiKa6BVueFCljcX3alLm9I8X6LT/OwOcms=; b=mt6jWiP15pfssCqXjkzoGvcVRlyQrRutY2tnL/AuWh5M7vYEAbeEZpIMjlC0gh1Zo8 CPedveQBDwkJ8Fh2vK2V3HQK/Ub4OlsJN7hSYmNnvxQW9WcjQkxM5AJCwKYk1qLDcGgU YWXSLMxi+c3OBUuz18aX/fgkaxliW8fRKbeJYf4RiK9ykLUihzsrJEOUFbHMxuBEGEtr oCShD4joqtSzHCS6Yw+ctVAfqxNQe2K8bHxuFFDsFEysr7LXWpqiSb8NwTulz+hEX2au Afz9i83UCokPAdKXA6VWkwT6iD3FdSpDAqA9Hq30YHg8d49LxOBORdvjTqDO72c44f2I 1ZFg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-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 x24si8243569pfr.200.2019.07.12.01.54.56; Fri, 12 Jul 2019 01:54:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-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-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725935AbfGLIyz (ORCPT + 5 others); Fri, 12 Jul 2019 04:54:55 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:39351 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725913AbfGLIyz (ORCPT ); Fri, 12 Jul 2019 04:54:55 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.129]) with ESMTPA (Nemesis) id 1MC0HF-1hcGYX1ygP-00CUbG; Fri, 12 Jul 2019 10:54:40 +0200 From: Arnd Bergmann To: Darren Hart , Andy Shevchenko Cc: Arnd Bergmann , linux-gpio@vger.kernel.org, linus.walleij@linaro.org, bgolaszewski@baylibre.com, platform-driver-x86@vger.kernel.org, Andy Shevchenko , "Enrico Weigelt, metux IT consult" , Randy Dunlap , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org Subject: [PATCH] platform/x86: pcengines-apu2 needs gpiolib Date: Fri, 12 Jul 2019 10:54:16 +0200 Message-Id: <20190712085437.4007720-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:q5tPZJu9QNhMvB+Wjc3nD4+lt6P94lxXdaRle25TJJYOM/GHoiD /Ck9YlzlpO5LarKonCtXtY6s32D3RHStZ/uUlKcxN5hl6/5Q8d/8zFb2B4tCpX3rh/3EC7F prAVYFM+3zsSaFDP4Yf0HX1G1fSaPq787L7KWXquFwxEpl0DIvcpTwdL62bd+OPqmI3BF3W V5C2Cui+oFBnuSwh3lXeg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:UryBGBMeQx4=:kSGxr+DizaqVDm43tZ3n4N 1/ubNIVL20pMkt/p5VJw0mi1kSmHkbWNqF1KNp/+CdZ7CtN9NyLpnwAkyl/ZqodCHm4de/IpB r1uA5TZZazzo0Pr4dqco8Mn7EJW/C7joDbzjB/RklUZpiIWmSt4GutOOagb028hift7Js602J WZZ6G694HH44qLQQ6ba5fb7ofpQ3bY6u/sWC35PoSCDLM/fmrhFaVBpyd8wRpeef1TZkdVPtH E+MBT+ergUp39Q+6HEhf6V4XWfcJifcVk+yWyW8sc2oK8kBf2aIV68i+jxERDjDwKSb9BYNpe m7z+XmVRrzbDDj7NSqvqIoUqfv1Hzykf5/kNuYE0o/04VkPZBxPILkc1TZm1gAK5AXduhxddb j+D5R5hNmharF2JSQrAEi9jmgDSHY6haYX5ghczeXbOsQCi+6dgX2qa9+o3c3acqQ+6ToWO+E 8njWP05diZlWuu2RNw83lTew3NQBysGjkG7n+UqTiXuKQmcFJ9Wvdavfu5F/DdyzGmH9uWcJK JnRBLrUm/2Gpu1SGTZgGmp611f5rNQjtp+f3TF1ipq8QCbC6vUrGQiKv0Rz9GUaL3E+FkPnfq i9ONNp8WCM7kelzX/rIB6z8t1KnK7kqXaHULkK6CHgxUNQOG2O5Y6f8GMScvupRh44c9dVgBW wiWTHD4luwvayUctO4hxX3SjbTupBAeGozktuTdq11NQTCD91ixWsd+GG5Xi9P06pV7smJJee 3PnvsgeYyL3rORargUuokfIjbkCnQp/hOtDA3w== Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org I ran into another build issue in randconfig testing for this driver, when CONFIG_GPIOLIB is not set: WARNING: unmet direct dependencies detected for GPIO_AMD_FCH Depends on [n]: GPIOLIB [=n] && HAS_IOMEM [=y] Selected by [y]: - PCENGINES_APU2 [=y] && X86 [=y] && X86_PLATFORM_DEVICES [=y] && INPUT [=y] && INPUT_KEYBOARD [=y] && LEDS_CLASS [=y] WARNING: unmet direct dependencies detected for KEYBOARD_GPIO_POLLED Depends on [n]: !UML && INPUT [=y] && INPUT_KEYBOARD [=y] && GPIOLIB [=n] Selected by [y]: - PCENGINES_APU2 [=y] && X86 [=y] && X86_PLATFORM_DEVICES [=y] && INPUT [=y] && INPUT_KEYBOARD [=y] && LEDS_CLASS [=y] Make the 'select' statements conditional on that so we don't have to introduce another 'select'. Fixes: f8eb0235f659 ("x86: pcengines apuv2 gpio/leds/keys platform driver") Fixes: a422bf11bdb4 ("platform/x86: fix PCENGINES_APU2 Kconfig warning") Signed-off-by: Arnd Bergmann --- drivers/platform/x86/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.20.0 diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig index e869a5c760b6..cf48b9068843 100644 --- a/drivers/platform/x86/Kconfig +++ b/drivers/platform/x86/Kconfig @@ -1324,8 +1324,8 @@ config PCENGINES_APU2 tristate "PC Engines APUv2/3 front button and LEDs driver" depends on INPUT && INPUT_KEYBOARD depends on LEDS_CLASS - select GPIO_AMD_FCH - select KEYBOARD_GPIO_POLLED + select GPIO_AMD_FCH if GPIOLIB + select KEYBOARD_GPIO_POLLED if GPIOLIB select LEDS_GPIO help This driver provides support for the front button and LEDs on