Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1374410
| From | Guenter Roeck <linux@roeck-us.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 04/10] iio: stx104: Change STX104 dependency to ISA_BUS |
| Date | 2016-04-08 20:30 +0200 |
| Message-ID | <rlJkn-82k-41@gated-at.bofh.it> (permalink) |
| References | (1 earlier) <rljzA-5ql-23@gated-at.bofh.it> <rlsMx-3PM-1@gated-at.bofh.it> <rlDRE-3K5-19@gated-at.bofh.it> <rlEum-4hr-13@gated-at.bofh.it> <rlGmu-5Qa-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 00/10] Use the ISA bus driver for PC/104 and ISA devices William Breathitt Gray <vilhelm.gray@gmail.com> - 2016-04-07 16:50 +0200
[PATCH 01/10] isa: Implement the module_isa_driver macro William Breathitt Gray <vilhelm.gray@gmail.com> - 2016-04-07 16:50 +0200
[PATCH 06/10] watchdog: ebc-c384_wdt: Utilize the ISA bus driver William Breathitt Gray <vilhelm.gray@gmail.com> - 2016-04-07 16:50 +0200
Re: [PATCH 06/10] watchdog: ebc-c384_wdt: Utilize the ISA bus driver Guenter Roeck <linux@roeck-us.net> - 2016-04-08 02:40 +0200
Re: [PATCH 06/10] watchdog: ebc-c384_wdt: Utilize the ISA bus driver William Breathitt Gray <vilhelm.gray@gmail.com> - 2016-04-08 14:10 +0200
[PATCH 04/10] iio: stx104: Change STX104 dependency to ISA_BUS William Breathitt Gray <vilhelm.gray@gmail.com> - 2016-04-07 17:00 +0200
Re: [PATCH 04/10] iio: stx104: Change STX104 dependency to ISA_BUS Guenter Roeck <linux@roeck-us.net> - 2016-04-08 02:50 +0200
Re: [PATCH 04/10] iio: stx104: Change STX104 dependency to ISA_BUS William Breathitt Gray <vilhelm.gray@gmail.com> - 2016-04-08 14:40 +0200
Re: [PATCH 04/10] iio: stx104: Change STX104 dependency to ISA_BUS Guenter Roeck <linux@roeck-us.net> - 2016-04-08 15:20 +0200
Re: [PATCH 04/10] iio: stx104: Change STX104 dependency to ISA_BUS William Breathitt Gray <vilhelm.gray@gmail.com> - 2016-04-08 17:20 +0200
Re: [PATCH 04/10] iio: stx104: Change STX104 dependency to ISA_BUS Guenter Roeck <linux@roeck-us.net> - 2016-04-08 20:30 +0200
Re: [PATCH 04/10] iio: stx104: Change STX104 dependency to ISA_BUS William Breathitt Gray <vilhelm.gray@gmail.com> - 2016-04-08 21:30 +0200
Re: [PATCH 04/10] iio: stx104: Change STX104 dependency to ISA_BUS One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk> - 2016-04-09 15:00 +0200
Re: [PATCH 04/10] iio: stx104: Change STX104 dependency to ISA_BUS William Breathitt Gray <vilhelm.gray@gmail.com> - 2016-04-09 16:00 +0200
Re: [PATCH 04/10] iio: stx104: Change STX104 dependency to ISA_BUS One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk> - 2016-04-09 18:00 +0200
[PATCH 02/10] isa: Implement the max_num_isa_dev macro William Breathitt Gray <vilhelm.gray@gmail.com> - 2016-04-07 17:00 +0200
Re: [PATCH 00/10] Use the ISA bus driver for PC/104 and ISA devices Linus Walleij <linus.walleij@linaro.org> - 2016-04-11 09:00 +0200
csiph-web