Jan Dittmer wrote: > Greg KH wrote: > >>Please just add the "rescan" support to fakephp, and everyone will be >>happy... > > > Well, I started to work on this for fun. What I currently have is a > stand-alone module which rescans the pci bus on insert and enables > previously disabled devices. This works (at least with my ieee1394 port). > Problem is, that fakephp does not get notified about this new pci device > and no new file is created in /sys/bus/pci/slots. So I'm going to add > this rescan functionality directly to fakephp. > Question is: where? My current idea is a fake hotplug slot "rescan" in > /sys/bus/pci/slots , where you can write "1" into the "power" attribute. > FWIW I've attached the standalone module and a kernel patch which rips > out the pci_bus_add_device functionality from pci_bus_add_devices. Well, here is a quick & dirty hack, which adds this function to enable_slot in fakephp. So if you write "1" in the power attribute of any slot, the whole bus gets rescanned (you still need the pci_bus_add_device.patch from the previous mail). Thanks, Jan