Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752879AbdLYOsY (ORCPT ); Mon, 25 Dec 2017 09:48:24 -0500 Received: from vps-vb.mhejs.net ([37.28.154.113]:39352 "EHLO vps-vb.mhejs.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752273AbdLYOsU (ORCPT ); Mon, 25 Dec 2017 09:48:20 -0500 Subject: Re: [PATCH v2] gpio: winbond: add driver From: "Maciej S. Szmigiero" To: William Breathitt Gray Cc: Linus Walleij , Andy Shevchenko , linux-kernel , linux-gpio@vger.kernel.org References: <309acd17-5244-da8c-a28e-dace15ada4fb@maciej.szmigiero.name> <20171224224215.GA2372@sophia> Message-ID: <0e8ece1e-3041-ea58-f5b6-298c163fa747@maciej.szmigiero.name> Date: Mon, 25 Dec 2017 15:48:16 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1506 Lines: 35 On 24.12.2017 23:42, William Breathitt Gray wrote: (..) > By the way, don't hesitate to ask for more information on the ISA > subsystem -- a lot of maintainers are unaware that it even exists since > so few devices nowadays use ISA-style communication -- but I'm always > happy to help. :) It turns out that all this ISA bus is behind CONFIG_ISA_BUS_API which cannot be automatically selected by this driver due to a recursive dependency conflict with CONFIG_STX104. All the existing ISA bus drivers seem to depend on CONFIG_ISA_BUS_API instead of selecting it but IMHO this is wrong because: 1) This Kconfig option doesn't really enable or disable any bus support but building of a library of some common boilerplate code. Libraries are normally selected by drivers needing them and only provided as an user-selectable option if there is a possibility that a out-of-tree module would need it, 2) On x86_64 this option (or rather, its parent option CONFIG_ISA_BUS) cannot be enabled without CONFIG_EXPERT, 3) This device isn't really a ISA bus device any more than, for example, a 8250 serial port or a PC-style parallel port and these don't need that an user explicitly enables "ISA bus support" in his kernel configuration. To be clear I'm fine with converting this driver to use the ISA bus (in fact, I have already done so), but I think that currently this would be a regression from user-friendliness perspective due to the points above. > William Breathitt Gray Best regards, Maciej Szmigiero