Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3246927ybi; Sun, 14 Jul 2019 09:43:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqyN4s6vANRkXWtOvcnbQOzLkErPTKWonGgfa7znlozNS0o8iVR53FEDSqcgD0T9CuNItT+z X-Received: by 2002:a17:90a:8984:: with SMTP id v4mr24327497pjn.133.1563122630144; Sun, 14 Jul 2019 09:43:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563122630; cv=none; d=google.com; s=arc-20160816; b=r/lh/I7QVb1R1g+FUU/mRq59N6LHXxDrhi2eWwb4H5phItWExaE3Dj1EWVqUMwY1ET E+h8aUfAZh6KIjHBN5qSuQnsMntt7K5Hcnae8nSrF2zc5tC0HnU50aCFkbMdVGt0Q60W qHmzA3IGeWko6pbTS6Gv7wiKi9gxv9wyvb0iH7OZGdH1PMALr00UWIHDI/Ju1e7WhBlv BZZaovHLOtE4I9LNGurhCYu8lS/tX7LuyU5AbmE2sYVJEfMtZUxuLZfL14b1LgBylqna Y5cMEeNvUjPqhhrHpjfJmrQvL9U/HYkGGEyWapg3P3czOTJHLwjv6K878tu7iK6jDsGD U/AA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=J5dS/JXowkdv5WB/Z8jomVaxmm5qYX5+tOsJ5uovcWo=; b=Z3JgH0SGDMXqqpKpXj68vc1DbhHanyAsuTLgItZULmEPbHLgXjQUubHRWA17XYRjH8 Zmzhts+VY77gnekrSDLCHTe7oQnpVfW7lDMCnGd2KZNga38wO5GYvQwrbAP9mx51XYJi Uls6L242do86oT9q2LMVFO+oO0kl0Pe9y28u/QYsq3f3sCPMLCjpQ2h/3xXHU4bJd9kq YMZ/4QP8tSsjlKQyGTXp7CbTFmDT5rgk2UF3f9Os12WCpfL4REBX28gM4l2a/Ok1km8I 3VqOMZ8IUoAjOztCzmw7CTex/LVAQwIiWrIrCpWT/E5rQrjRjcqxVjWCUOvwtTB7ELnn cv6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gdP2kbqM; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p13si12614957plo.33.2019.07.14.09.43.34; Sun, 14 Jul 2019 09:43:50 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gdP2kbqM; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728654AbfGNQmc (ORCPT + 99 others); Sun, 14 Jul 2019 12:42:32 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:40046 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728065AbfGNQmc (ORCPT ); Sun, 14 Jul 2019 12:42:32 -0400 Received: by mail-pg1-f193.google.com with SMTP id w10so6586807pgj.7; Sun, 14 Jul 2019 09:42:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=J5dS/JXowkdv5WB/Z8jomVaxmm5qYX5+tOsJ5uovcWo=; b=gdP2kbqMMoC7Yradyph/t591dpaznz9iKJ5+x6jJzV/IoqdC0iFcPvP+4/3u/22MHi lV227N75DwfboolGPdqPP5WHrIzmH9q/PxAob4p9+DxylrHrtw5S04wdvATuGjgzguZV wfa8Zh85Vi9sdscFCvrezOX59rKGYGyaMrVwgdQviQrfXLVaBodV3s8/iIOJDIc/5ih9 PEUBS5HKK9/gRSYft2BXkuCbKOugRSK3sqSLUcfwHn4u+M2lRZMI9G3okugGjqwkIfmd tWjH+0uAUNN5C0Y8CVXjvxra7yrpwMJa82N2eaUVGpsN6sbASRC2nLER8XuxdHBN9JWL MUkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=J5dS/JXowkdv5WB/Z8jomVaxmm5qYX5+tOsJ5uovcWo=; b=mDDGVceiykkO2PYs9Q5hyxS8I0fXivnyl2VikxB4Cuz5GOx6095MVmrXXHpuElbUh9 qMxw8CZrffsMNP4d4AocYqo+bON3A13499QqtIqCP3irMfh8JYMzg9s+2IiMOJbMTnyj SdP3+kt9p/VkICcwDCKnnyhksQWByF8HUInHhdMc5cf6jdHntoFNr65MJL68YpXGMKZT tIByKKC96WDVbePiORrdFlsXyOl0dqT3x0emf9kB6TPKwIOZiJ8CR7H8t3P3i0h1PRAA FIwHLHNtAEmZyocV4XsAqgXv3yNouiVxIAXPj8CbSlmHsds3Xw1oy88qnPkx8hcVlonY +6Nw== X-Gm-Message-State: APjAAAW6WDJHu3L1dAez9rTTXZIaU+8sy4vm+MZS1DafJFWPg8BQPGXL t8Joyu3tFiRfCZjrEFxAsT1M/7B77FmUL/fghjUvGI5qg+g= X-Received: by 2002:a63:6eca:: with SMTP id j193mr21987456pgc.74.1563122551548; Sun, 14 Jul 2019 09:42:31 -0700 (PDT) MIME-Version: 1.0 References: <20190704062725.50400-1-yuehaibing@huawei.com> <603661e6-8694-4787-6cee-61cc6ba61fc2@metux.net> In-Reply-To: <603661e6-8694-4787-6cee-61cc6ba61fc2@metux.net> From: Andy Shevchenko Date: Sun, 14 Jul 2019 19:42:20 +0300 Message-ID: Subject: Re: [PATCH] platform/x86: Fix PCENGINES_APU2 Kconfig warning To: "Enrico Weigelt, metux IT consult" Cc: YueHaibing , Darren Hart , Andy Shevchenko , Linus Walleij , Randy Dunlap , "Enrico Weigelt, metux IT consult" , Linux Kernel Mailing List , Platform Driver , "open list:GPIO SUBSYSTEM" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 8, 2019 at 1:43 PM Enrico Weigelt, metux IT consult wrote: > > On 04.07.19 08:27, YueHaibing wrote: > > Fix Kconfig warning for PCENGINES_APU2 symbol: > > > > 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] > > > > Add GPIOLIB dependency to fix it. > Applied. > hmm, I'm not really happy w/ the kernel config system at that point: > > If the select on the gpio driver would just subsequently enable gpiolib, > everything would be fine. But that contradicts how subsystems are > currently handled - you first have to enable gpio subsystem before > choosing anything that depends on it :( > > Could it make sense to refactor gpiolib in a way that pieces directly > needed by gpio consumers or drivers (hmm, perhaps have separate > dependency symbols for consumer vs driver) can be selected directly, > even if the big gpio subsystem knob is disabled ? (but the other things > like userland interfaces would remain disabled) ? > > OTOH, for this particular patch: > > Ack-By: Enrico Weigelt Patchwork doesn't recognize non-standard tags, thus the patch went without it to the upstream. > > > --mtx > > -- > Enrico Weigelt, metux IT consult > Free software and Linux embedded engineering > info@metux.net -- +49-151-27565287 -- With Best Regards, Andy Shevchenko