Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp3330357imb; Tue, 5 Mar 2019 06:50:19 -0800 (PST) X-Google-Smtp-Source: APXvYqzV2D37T89PjDqHTWmxbh4Txokcq3HYoW5PzFaxszHE/cjM3/Q4odb7Gzzkw4pDJluh1Myr X-Received: by 2002:a63:6545:: with SMTP id z66mr1751479pgb.182.1551797419751; Tue, 05 Mar 2019 06:50:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551797419; cv=none; d=google.com; s=arc-20160816; b=gHjleOAjCoVKzuDjYKr/OaOXWzo5XjQqOiCNcPIMsP9+jFVRzguTdHqbMJIEwIqkc7 NXCN5IAv5LqZV+GT2tPQlALT1nSr5/sD+++Eu4VbWBhFNA6nCDqIZNgdAMuD4vkovf0q CM0gqBhqxzOTvwq/CdjH2xEKjGfgrXd/mQPT1LBAZ1ytM97x+KxfyZ769g8FyDiHNkTM Qzj75u/cchMTD3i5VwFlX96RxykeCgrm9TZQnizAM3oZrHS0skFTDSsReubxH0o7yaw8 lL5GZ5wTP3ds3ZcDlScFFkH7kRHsBLlPQlcyiHVd1x36gNCybdvQgRU+7wJjQoMKJ7Yu 8DHw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=y6LqerRCUCtm6CHhTYFOPE5PHrO3n04p859fphK+9ZU=; b=ERRux6OxhWWDqUdk6eGaX+ohHjF3gUdTGos+MyzShx1zzpWIPPOdJo25wToIthuUuF essJPGMW/rU/4YlAqRCwZoVUNalpi+aQ2uSFcIFQNQq8vWhNknJ9yO+BDCQCsC3hXrug naQXd+762EiwR2GOzZcdYVO0ykulYvb4Q4eGLPjbggaP7afRxWqFfy5hgfgtP99Xsu1j QWNz65G3XQ4Qk1nlppVey7hRAiKBjBp7O1BM4rSqUF+4dIVhqZc1Wf/kHGdLjGsz+hHd zQ5lu3naramOh5u1MbhwpvRRNo0XhM1Uzwn4LwXQup2QwErP4QePCEdb3q4cRRPw+WlC lHEQ== 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 n20si8204761pgb.78.2019.03.05.06.50.04; Tue, 05 Mar 2019 06:50:19 -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 S1728514AbfCENuq (ORCPT + 99 others); Tue, 5 Mar 2019 08:50:46 -0500 Received: from mout.kundenserver.de ([212.227.126.187]:35633 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727575AbfCENup (ORCPT ); Tue, 5 Mar 2019 08:50:45 -0500 Received: from [192.168.1.110] ([95.118.29.230]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MP2zs-1gblrD1IwG-00PLVf; Tue, 05 Mar 2019 14:50:35 +0100 Subject: Re: [PATCH 2/3] x86: apuv2: fix input dependencies To: Arnd Bergmann Cc: Darren Hart , Andy Shevchenko , Linus Walleij , Enrico Weigelt , Andy Shevchenko , "open list:GPIO SUBSYSTEM" , Platform Driver , Linux Kernel Mailing List , yamada.masahiro@socionext.com, linux-kbuild@vger.kernel.org References: <20190304201930.1622839-1-arnd@arndb.de> <20190304201930.1622839-2-arnd@arndb.de> From: "Enrico Weigelt, metux IT consult" Organization: metux IT consult Message-ID: <54a7d035-155f-c47b-1db1-acb851b3aec6@metux.net> Date: Tue, 5 Mar 2019 14:50:33 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:5w8Oy1QUP5D8GKRoukweESEcD6DrQtd2KJaYl22I70X3OHYBMTb LYNcnx78pwsxP3bbohY6Rd8mtJ6IMRmxC2h1MRbYEthPUNWUDVLx24QpLQhlxJvhvv01bUc +5Fm4v1E0Q5bW7PSrNoTqGHS4vsrdWeBxAdoOSRCjCSt4mXBjJgyAIOUnsGGCWK2LRnwQQq VXnhIKNqI8dZLpifeoiMQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:2+NYjR/F27U=:KC1JLCWyWr8aUFntvuTwJX pMlLvNWQYn8lIgL7OT0q0tDjJbBZH4L20zLO4jgIT70bfXU+tQF+1e7IA7cObDXDrvD9b1aFq lVcYlKxdXZ8dM5Nf44+EcLaTK80o8S8cBwo3jQZno3nHp4kQrknON3M8Q/smtal8/a741OpEy ew9ZOqaEptQEldEHFCAd6ZgnW9NxiaDlam5umdsSJIrAgZcceBssoJKJM+LljQdLeIM6+CZeZ ghRB0lpTPePKqPr+2sVmddew4tX+zRxCRwXrrUXKFF7hCBfzU2D8Fw+zeLlMbRbxdCkVPPRsS VJ0UxDnfko+LXXUrWJM5ypbmteb5fwZIrVldh8KDSJBXKHffKRC7TviGOaIXtrqVj2YHYdEux iST5onXQ5KW2jEzB+G0poZ3vXt0XADtOYHvcGE5Wdkl6pKkER4nhJ3CF8ZqtlIPUvP4wojTaI FXsSg0V6uz+LK8kDY8g4fbPIUS/n+3LYb5LEnpbhwPHZ8UDGFItTSJw7ELFEm/17v6P50ybAl qrYKmVqKrUU6J9TP9dVpCxIaGV3pLDAnbgmcLKSAqCMKARQitG5i6znSLO9pc7j8LYzYth6Zg OpuOzkjeJmJ9APvPyujdrTB8gEZ/6GdfDnXy6FSmfjIPgeJcNOBxwr0ji8P0QO2rmjhD/62q3 vmgtB+SGG1m8PqE0p507eb6sV39hEszuPR5fbWr/3wJwFAvLl6pK6/3gVlnakEpYwBXtAwA1X qk8SBT7vlaUjxSLyVZhsYtPd798WBU8nUqZdBep5UWaj49VuUJ8X+LPVg3g= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05.03.19 09:23, Arnd Bergmann wrote: (CC'ing kbuild maintainer + list, hoping for better ideas :) > No, that wouldn't be good here. In effect that means that with INPUT disabled, > most of the x86 platform drivers are disabled, until you enable the > PCENGINES_APU2 symbol, which then ends up showing all the other > symbols at once, and changing them to their default states. Okay, I didn't consider the defaults. Maybe we should talk about step by step getting away from these defaults (perhaps move them to the defconfigs ?) on a broader scale ... but yeah, that's far out of scope now. So, you've conviced me. Add me to Reviewed-By to your patches and forget about mine. > Another problem is that you likely run into circular dependency chains > after trying that. The best practice for select vs. depends are hmm, if circular deps happen, wouldn't that mean we've got some deeper problems in here ? IMHO, dependencies should always form a DAG (except for some really rare cases). Do you recall any actual problem w/ input vs gpio vs. drivers ? I'd like to have a closer look at it. > 1. try to use 'depends on' if you can Well, this has the unpleasant side effect that we often have to enable a lot of things, just to even see the individual driver. For people who just wanna configure a kernel for their board, this is a bit nasty. But, okay, I'm going to do this w/ my own tool - I've written a small tool that allows easy kernel reconfiguration on a higher level: you can just pick some board templates and enable high level features like eth, gpu, etc - it automatically creates a .config for you. I'm going announce it on lkml soon. --mtx -- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering info@metux.net -- +49-151-27565287