Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758403AbcDHS2E (ORCPT ); Fri, 8 Apr 2016 14:28:04 -0400 Received: from bh-25.webhostbox.net ([208.91.199.152]:37055 "EHLO bh-25.webhostbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751186AbcDHS2A (ORCPT ); Fri, 8 Apr 2016 14:28:00 -0400 Date: Fri, 8 Apr 2016 11:28:01 -0700 From: Guenter Roeck To: William Breathitt Gray Cc: gregkh@linuxfoundation.org, tglx@linutronix.de, jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, wim@iguana.be, linus.walleij@linaro.org, gnurou@gmail.com, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-gpio@vger.kernel.org Subject: Re: [PATCH 04/10] iio: stx104: Change STX104 dependency to ISA_BUS Message-ID: <20160408182801.GB7083@roeck-us.net> References: <783be62acf68b35f3fe4785a2cedfe017624688b.1460040201.git.vilhelm.gray@gmail.com> <20160408004503.GB10211@roeck-us.net> <20160408123158.GB18202@sophia> <5707AF91.5010704@roeck-us.net> <20160408150922.GA28058@sophia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160408150922.GA28058@sophia> User-Agent: Mutt/1.5.23 (2014-03-12) X-Authenticated_sender: guenter@roeck-us.net X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bh-25.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roeck-us.net X-Get-Message-Sender-Via: bh-25.webhostbox.net: authenticated_id: guenter@roeck-us.net X-Authenticated-Sender: bh-25.webhostbox.net: guenter@roeck-us.net X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2888 Lines: 65 On Fri, Apr 08, 2016 at 11:09:22AM -0400, William Breathitt Gray wrote: > On Fri, Apr 08, 2016 at 06:18:09AM -0700, Guenter Roeck wrote: > > From the context, arm and mips use "select ISA". For those, adding and > >auto-selecting ISA_BUS would make sense. For the remaining architectures > >you could simply add "config ISA_BUS". I would suggest to update default > >configurations, though. > > > >There is also "um", for which you effectively disabled ISA support > >as far as I can see. You might want to look into that as well. > > > >> My avoidance of making ISA a selection of ISA_BUS is the possibility of > >> an invalid configuration: a user may initially enable ISA_BUS, then > >> later disable ISA, resulting in ISA_BUS remaining enabled without ISA > >> selected. > >> > >Does that even make sense ? Not sure I understand why you don't just > >select ISA_BUS if ISA is selected. That would also be backward compatible > >and avoid the problem I was concerned about. > > I feel now that the introduction of the ISA_BUS option may the wrong > approach to resolve lack of ISA support for the X86_64 architecture; > adding ISA_BUS depends or selects through various Kconfigs would simply > obfuscate the ISA option. The true issue is that various driver > configs are assuming X86_32 architecture when they depend on the ISA > option, but the ISA bus does not require an X86_32 architecture. > > The proper resolution then is to remove the misguided ISA_BUS option and > move the X86_32 dependency to the relevant drivers configs explicitly. > A grep for isa_register_driver calls within the kernel reveals that only > a few drivers explicitly use it. It should be trivial to create a patch > to add the explicit X86_32 dependency to the relevant drivers, so I will > submit one soon when I get the time to decouple X86_32 from the ISA > config option. > That might be tricky: At least some if not many of those drivers are expected to run on non-X86 architectures, and thus don't really depend on X86_32 (possibly some depend on 32 bit - I didn't check). I count 44 calls to isa_register_driver() in the current mainline. Not sure if this counts as "only a few drivers". Thanks, Guenter > Once ISA is freed from the X86_32 dependency, I will simply use it > instead of ISA_BUS, and rebase this patchset for version 2. > > >> As a side note, should the dummy isa_register_driver return 0? Would it > >> be more appropriate for it to return an error code to indicate lack of > >> support for ISA, rather than silently fail? > >> > >One should think so. > > > >Thanks, > >Guenter > > > > I'll submit a separate patch for this as well then. > > William Breathitt Gray > -- > To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html