On 2/22/08, Jochen Friedrich <jochen@scram.de> wrote:The correct statement is: modify the i2c subsystem to support the standard kernel driver aliasing mechanism. Leaving powerpc and OF out of the argument for the moment, i2c has a custom aliasing scheme on the x86 too. So as a first step, can we remove the custom i2c aliasing scheme and change i2c to use standard module aliases on the x86? Patches for this already exist. On 2/23/08, Jean Delvare <khali@linux-fr.org> wrote: I think there is some confusion here. The OF aliases are only used by the kernel to load the correct driver. Would doing something like this help? static struct i2c_device_id pcf8563_id[] = { {"pcf8563", 0, "sysfs_legacy_name"}, {"rtc8564", 0, "sysfs_legacy_name"}, OF_ID("phillips,pcf8563", &pcf8563_id[0], 0) OF_ID("epson,rtc8564", &pcf8563_id[1], 0) {}, }; MODULE_DEVICE_TABLE(i2c, pcf8563_id); Then in the probe function you can use the pointer to find the base id entry and i2c never has to be aware that the OF alias exists. Not really practical for the millions of machines (all PowerPC Macs) already shipped. Audio codecs have exactly the same problem. There are probably other devices that also need mapping. This mapping table will need to contain a map from the OF names to the kernel driver names. It will need to stored permanently in RAM and contain all possible mappings. This table will only grow in size. The kernel has a widely used mechanism for mapping -- aliases in the device drivers. Why do we want to build a new, parallel one? What we are doing now is option 4. 4. Use kconfig to build custom kernels for each target system. Don't load drivers automatically based on what the BIOS tells us. -- Jon Smirl jonsmirl@gmail.com --
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Riki Oktarianto | [PATCH] Add quirk to set AHCI mode on ICH boards |
| Alex Chiang | [PATCH v5 00/16] PCI: let the core manage slot names |
git: | |
| Sam Song | Fwd: [OT] Re: Git via a proxy server? |
| Toby White | Using Filemerge.app as a git-diff viewer |
| Sam Vilain | [PATCH] git-mergetool: add support for ediff |
| Adrian Bunk | git-revert is a memory hog |
| Marcos Laufer | dmesg IBM x3650 OpenBSD 4.3 |
| Stephan A. Rickauer | Re: New tcp stack attack |
| Richard Stallman | Real men don't attack straw men |
| Ondřej Surý | openbgp not exporing ipv6 to routing tables |
| Michael Chan | [PATCH net-next 2/6] bnx2: Check netif_running() in all ethtool operations. |
| Herbert Xu | Re: xfrm_state locking regression... |
| adobriyan | [PATCH 10/38] netns ct: per-netns expectations |
| Dale Farnsworth | Re: [PATCH 01/39] mv643xx_eth: reverse topological sort of functions |
| How to make my PCIE ATA storage device running in Linux | 8 hours ago | Linux general |
| sata/ide timeout errors on asus server-mb | 11 hours ago | Linux kernel |
| Shared swap partition | 12 hours ago | Linux general |
| usb mic not detected | 16 hours ago | Applications and Utilities |
| Problem in Inserting a module | 17 hours ago | Linux kernel |
| Treason Uncloaked | 22 hours ago | Linux kernel |
| high memory | 3 days ago | Linux kernel |
| semaphore access speed | 3 days ago | Applications and Utilities |
| the kernel how to power off the machine | 3 days ago | Linux kernel |
| Easter Eggs in windows XP | 3 days ago | Windows |
