Intel ICH - sound/pci/intel8x0.c
Quoted 10 lines · Jon Smirl
Quoted 5 lines
I'd don't know enough about the LPC bridge chip to know what the correct answer is for this. Right now I tend to think that the PCI driver should own the bridge chip. If not the PCI driver then there should be an explicit bridge driver. I don' think it is correct that a joystick driver is attaching to a bridge chip given the simple fact
Nobody else currently needs to attach to it so why make life needlessly complicated.
heu hw_random and i8xx_tco use also the lpc bridge, but hopefully they don't attach it.
Quoted 8 lines
Quoted 6 lines
that all legacy IO - joystick, PS/2, parallel, serial, etc is located off from that same bridge chip.
Matthieu's comments about using PNP for this seem to make sense. Are we missing implementation of an ACPI feature for controlling these ports?
See previous discussion. We have isapnp, biospnp but not great acpi pnp.
That why I start a patch implementing acpi PnP, but nobody seem interested :(
Quoted 1 line
None of them help because you need to deal with hotplug.
Heu, I don't understant why you need to deal with hotplug ? PnP modules works like pci modules. You make a list of know id, and then you call {pci,pnp}_{port,irq,dma}_{start,len,...} to access resource of the device.
Hotplug is need like for pci modules to autoload it.
Also using the LPC brigde the alsa driver don't know about the io port and irq resource you had to pass them via modules option. For the gameport, alsa driver use a hardcode value of 0x200 that is wrong on my computer (it is 0x201).
For the midi port it don't use the irq...
With PnP, the bios/acpi give theses resourse.
For the bit you had to write in the LPC for enable io port, I made a little test and even if you writte bit that disable the io gameport it still work. Moreover, I think the bios autoset these bits.
Matthieu
Quoted 3 lines · Matthieu Castet
Quoted 1 line
None of them help because you need to deal with hotplug.
Heu, I don't understant why you need to deal with hotplug ? PnP modules works like pci modules. You make a list of know id, and then
ISAPnP has no hotplug functionality. If I have an ICH or 440MX in laptop docking stations the ISAPnP world simply can't report it, while the PCI hotplug layer can.
The hotplug event of interest is the insertion of the snd_intel8x0 chip, not the insertion of the LPC bridge. It's hooking to both events, it only needs to hook to the snd_intel8x0 event and then search for a bridge if there is one.
Takashi says the code is already gone in the alsa tree so we don't know how they fixed it.
Quoted 17 lines · Alan Cox
Quoted 3 lines · Matthieu Castet
Quoted 1 line
None of them help because you need to deal with hotplug.
Heu, I don't understant why you need to deal with hotplug ? PnP modules works like pci modules. You make a list of know id, and then
ISAPnP has no hotplug functionality. If I have an ICH or 440MX in laptop docking stations the ISAPnP world simply can't report it, while the PCI hotplug layer can.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Signature · 2 lines
Jon Smirl [email protected]