From patchwork Mon Mar 4 20:19:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 159598 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp4172188jad; Mon, 4 Mar 2019 12:19:57 -0800 (PST) X-Google-Smtp-Source: AHgI3IbUALugwbAYHQJiT4SGPfFSpXQihE8XRj+oPpbVRliIqEHqeZ39ReTn7+0dCAPudUpa0X1j X-Received: by 2002:a62:449b:: with SMTP id m27mr21958307pfi.79.1551730797848; Mon, 04 Mar 2019 12:19:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551730797; cv=none; d=google.com; s=arc-20160816; b=KGMSyIVEvB8B9tsyflDWFAG9AjX39LDPqp5/TYw8PTYWiTaY/0C2RyKa7f3xmbogcR zuY4fJcQ3Ut0wgRXzQvBfzIqxPJbUZ1sGcwa+g1Q9QSjlDnvVVFKpTPnf2vUVAPX6YPa k9Kv9kQK7QQhb3ET+H+NozAefWgQSx4z7E7FJACjmNjlQ9KTW6Tn1Y937SfOXZf2Tj7N SjiosBneBIHmPOLpWVXPXVqA3ha87QuRtgu8g5kdsAy59xgM4AdHuJ/TTIJNqdTghVAs CrRKDicQsv6zc/2uSji/3PQG7Mj4f4B7fLhsh/OzNHYFQKnarns8IY+QLiuVsijFPdq6 g/bQ== 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=tLGLGcJavNlp6zJoF9z/2x+58bfJv+m5KQxuMowk+xo=; b=OtHVuxTbECLOd/q0aghwhn2j9ZRENhycJnjhDJgnO8lviVuP21epcWlAZDFiXMTfh0 n5814gsxswFA1ISoUqrgu5vftOjIEPrrgI1qtd3oTc+CnD4Vs9LBVc58NjQ+FnhH9gJj Oo58MEueHdn9G4DhOiLO6nd2wDYk0xc9a9gRQ+lFLPbTDnLh9oyKi2kYJ0NGBQvQ8SlT mSbvCW1jsUwZcBRfYI0D1U3MzhLyR6JkPaHT6tWOz3L8dLohFUL0/PjP8wMON3KyErUr Se4VUq9Diu8POU48FPQ2jk1961zk6T4QvxsWBcy0MX3zpHfQj4NA0rNNS1w84yklVj+p hUeg== 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 k124si6101928pfc.0.2019.03.04.12.19.57; Mon, 04 Mar 2019 12:19:57 -0800 (PST) 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 S1726357AbfCDUTz (ORCPT + 31 others); Mon, 4 Mar 2019 15:19:55 -0500 Received: from mout.kundenserver.de ([212.227.17.24]:59245 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726038AbfCDUTz (ORCPT ); Mon, 4 Mar 2019 15:19:55 -0500 Received: from wuerfel.lan ([109.192.41.194]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.145]) with ESMTPA (Nemesis) id 1MryOx-1hLRlX3AF3-00nweE; Mon, 04 Mar 2019 21:19:46 +0100 From: Arnd Bergmann To: Darren Hart , Andy Shevchenko Cc: Linus Walleij , Enrico Weigelt , Andy Shevchenko , linux-gpio@vger.kernel.org, Arnd Bergmann , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] x86: apuv2: fix input dependencies Date: Mon, 4 Mar 2019 21:19:20 +0100 Message-Id: <20190304201930.1622839-2-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190304201930.1622839-1-arnd@arndb.de> References: <20190304201930.1622839-1-arnd@arndb.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:ylsiu+1WUSKbU/xQv18irdCbEBXfU0nongfEalQpp7PDSOC7332 atWBq/XLdpiw1EP4DY6RKEptDAndTP46Xwg9RqMRI9rO2cJqVmam4msuRpBVhZXxv6odnvV g5K+xFLc+po/Jn9ZNcP4khEv8+/RZj94nQkKoje0zmnnVMlWLgnx3jORpqQ9/D1MMbP5vxl wLJkmznkS5bzcL66mN1pA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:Vxi3d1CkIjM=:Kv/xz16e0cT2tVvFcjLiTm ep0vrQiqkLICd611ziJE7MHcpUhHAYbUtgQKrk87S15p6o5gkb9lm33+MyCOWCB8JsKnwabOm Cc2IjFIpiQlRzHh03tHH9T8rc7cqpG1sEvTFvWY8TnTX5osZ0K55aKv2P+6j+uY4dmi+zyEzN XN7LuThxVYvUvOY2GBOZwMcPHZqgYEW8ti5Lg4EiIqAvdxRvjh6ivBAeokJlfTvivm1xrCCMm Ph94g0uDcWoLq/AN57WEt4cIzk+fpZCQ9XWcur4Kwc8uM6Z9i8D1MjfcpRu2X0FQ0e8I93Frq asCv1rieGK5BaRwXJlHLcup6PvML9jH+oeZvSzzxblCdR5RFLp2pLoIsr+O9yEPJ86fOA7ykt BuJk6kGtDMSDohW1+AXyWd3UEqbm4mmHDuRrXdDHmb1xICCO/sTchrtGR2h3SQ3wchTU9ILgx z5902sy+tPPqceXWe0SDzqNPGSrMO2IunO8Y53XEMJ8bz5snhQzT03L5tfcBqdEil1bS7eniS 2QoOtfNOX8gBet/xVAz9j3fbAUkRhN10ubXh5Qz7Tk+QNdqgiS7ybyvjuMtOooJ6NytA2qQ8D wkLnXIpOQzC0Obx3ELte3B6lJQ6q8qumnHTfBVWHR1WgNDp+upazaQ665kgriTDQpOTpm8tuQ MCb/fsKWBswV5V2N1q9Aiu0NUkrPsSg2Cxw479I1UCn+z2shwn2cmftDPE0Bbb6YTrY6+0gqU SvO9vaQAggb/UaHl0Hj+nW0SngNYSkS1xjjTdQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We cannot select KEYBOARD_GPIO_POLLED if CONFIG_INPUT or CONFIG_INPUT_KEYBOARD are disabled: WARNING: unmet direct dependencies detected for KEYBOARD_GPIO_POLLED Depends on [n]: !UML && INPUT [=y] && INPUT_KEYBOARD [=n] && GPIOLIB [=y] Selected by [y]: - PCENGINES_APU2 [=y] && X86 [=y] && X86_PLATFORM_DEVICES [=y] This could be fixed using either a dependency or a 'select' statement. I'm chosen 'depends on' here since it is simpler has a lower risk of introducing circular dependencies. Fixes: f8eb0235f659 ("x86: pcengines apuv2 gpio/leds/keys platform driver") Signed-off-by: Arnd Bergmann --- drivers/platform/x86/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.20.0 diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig index 851ea921a58d..4d65d37b0c86 100644 --- a/drivers/platform/x86/Kconfig +++ b/drivers/platform/x86/Kconfig @@ -1305,6 +1305,7 @@ config HUAWEI_WMI config PCENGINES_APU2 tristate "PC Engines APUv2/3 front button and LEDs driver" + depends on INPUT && INPUT_KEYBOARD select GPIO_AMD_FCH select KEYBOARD_GPIO_POLLED select LEDS_GPIO