On Monday 28 April 2008, Trent Piepho wrote:Those labels may not be available though; or valid in pathnames. I'd rather see such stuff in a "chip_label" attribute. Easy enough to add such a thing. (The dynamic allocation code is now kernel GIT...) Since it's not always available, I removed it. Note that you're talking about the label passed to gpio_request() here, not the one applied to the gpio_chip. I could restore this as a "gpio_label" attribute, that's not always present ... but I'd rather not have such "optional" stuff. Typical SOC based systems have up to a few hundred pins that could be used as GPIOs. The number actually used as GPIOs is rarely more than a dozen or two, with other pins generally muxed to a peripheral function ... or not even connected. There's no point in having a few hundred useless nodes in sysfs! It can't know where in the device tree to put such device nodes, or how to implement operations like suspend() and resume() for such nodes. Creating such nodes, and their drivers, is NOT a role for generic code like gpiolib. Most GPIOs come from platform code that doesn't create such a device today. In cases like OMAP, GPIOs are usable even before memory allocations can work, so creating and using device nodes for GPIO controllers would involve updating code running VERY early in boot... You're free to write patches creating such device nodes, and work with the platform maintainers to convert their GPIO support to use standard driver model devices and drivers, then merge the results. Some were on-list, some were off-list. The comments have been coming off and on for a few years now, so I'm certain you would not have seen all of them. (I wouldn't have, either!) I had that thought too. Even though I think that solution is kind o fugly. ;) If need be, that can be changed. - Dave --
| David Miller | [GIT]: Networking |
| Chuck Ebbert | Why do so many machines need "noapic"? |
| Rafael J. Wysocki | [Bug #11264] Invalid op opcode in kernel/workqueue |
| Arjan van de Ven | [patch] Add basic sanity checks to the syscall execution patch |
git: | |
| Elijah Newren | Trying to use git-filter-branch to compress history by removing large, obsolete bi... |
| Kevin Ballard | Re: git on MacOSX and files with decomposed utf-8 file names |
| Andreas Hildebrandt | CVS-$Id:$ replacement in git? |
| Jakub Narebski | Re: bug: git-sh-setup should not be in $PATH |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| Darren Spruell | Re: OpenBSD as Virtualbox guest |
| Nick Guenther | Re: Real men don't attack straw men |
| Alexey Suslikov | OT: OpenBSD on Asus eeePC |
| Michael Chan | Re: bnx2 dirver's firmware images |
| Indan Zupancic | Re: Realtek 8111C transmit timed out |
| Alexey Dobriyan | Re: [GIT]: Networking |
| John P Poet | Realtek 8111C transmit timed out |
