Re: PCI Express Hot-plug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mar 14, 2011, at 9:04 PM, Greg KH wrote:

> On Mon, Mar 14, 2011 at 07:22:00PM -0500, David Hagood wrote:
>> On Mon, 2011-03-14 at 13:01 -0700, Greg KH wrote:
>>> 
>>> Your only hope is to disconnect the device, and add it back with the new
>>> resources changed. 
>> 
>> OK, fair enough. But how can you cause the kernel to consider the device
>> disconnected?
Look back at my previous reply. There's a file called "remove" in sysfs for the given PCI device you want to ~remove. echo a "1" in that file.
The exact equivalent, within a module's code: call pci_remove_bus_device(struct pci_dev*) like fakephp does.
> 
> As noted before, the 'disconnect' file does this.  See the functions it
> calls in the pci core to handle the pci device going away.
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux