Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1331441
| From | Jonathan Cameron <jic23@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2] iio: Add IIO support for the DAC on the Apex Embedded Systems STX104 |
| Date | 2016-02-10 20:00 +0100 |
| Message-ID | <r0I9A-65O-11@gated-at.bofh.it> (permalink) |
| References | <qZYgt-75-67@gated-at.bofh.it> <r0p6W-1XI-9@gated-at.bofh.it> <r0sHw-4lc-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 10/02/16 02:19, William Breathitt Gray wrote: > On Tue, Feb 09, 2016 at 10:37:09PM +0000, Jonathan Cameron wrote: >> My only real question is on the naming of the module parameter. >> Is it the equivalent of the io address that a load of ISA >> radio drivers seem to use? (fed to me by grepping isa_register_driver) >> If so perhaps that's the 'standard' name as much as one exists for this? > > Yes, you noted correctly that the stx104_base module parameter fulfills > the same function as the io module parameter used in many of the radio > drivers: it's an array holding the io port address of each device. > However, I find "io" to be a rather vague module parameter name, so I've > decided to use the more apt "stx104_base" name for my array of base > addresses. > > As you've probably noticed, there are few ISA drivers existing in the > kernel baseline currently, so not much of a standard is set yet. I'm all > right with renaming the module parameter if you have a preference, just > as long as the name is more informative than simply "io." > > For what it's worth, this driver is part of a series of PC/104 drivers > I've been submitting to various subsystems (in the hopes of improving > the lack of PC/104 support in the baseline Linux kernel); see > drivers/gpio/gpio-104-idio-16.c and drivers/gpio/gpio-104-idi-48.c for > example. I have thus far been following the convention of naming the > base address module parameter as "modname_base," where "modname" is the > respective module name. I've been trying to work out if IO ports is a generic enough ISA term to take the view that anyone using an ISA card should know about it... I certainly know the I/O space approach to interacting with PCI cards is well understood in people working with shall we say 'dumb' PCI hardware. I guess I don't really care all that much on this though - just nice to be consistent / general when possible. Jonathan > > William Breathitt Gray >
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH v2] iio: Add IIO support for the DAC on the Apex Embedded Systems STX104 Jonathan Cameron <jic23@kernel.org> - 2016-02-09 23:40 +0100
Re: [PATCH v2] iio: Add IIO support for the DAC on the Apex Embedded Systems STX104 William Breathitt Gray <vilhelm.gray@gmail.com> - 2016-02-10 03:30 +0100
Re: [PATCH v2] iio: Add IIO support for the DAC on the Apex Embedded Systems STX104 Jonathan Cameron <jic23@kernel.org> - 2016-02-10 20:00 +0100
Re: [PATCH v2] iio: Add IIO support for the DAC on the Apex Embedded Systems STX104 William Breathitt Gray <vilhelm.gray@gmail.com> - 2016-02-10 22:30 +0100
Re: [PATCH v2] iio: Add IIO support for the DAC on the Apex Embedded Systems STX104 Jonathan Cameron <jic23@jic23.retrosnub.co.uk> - 2016-02-10 23:50 +0100
csiph-web