Re: Pcie Linux HotPlug Driver

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

 



On Wed, May 29, 2013 at 10:30 AM, Paulo Fortuna Carvalho
<pricardofc@xxxxxxxxxxxxxxx> wrote:
> Hello Yinghai and Bjorn,
> Issue solved.
> You were correct. The module fakephp.ko was not loaded.

No, you should not use fackephp.ko. As it was removed already
in recent kernel.
It is replaced by pci slot driver.

In your case you should pciehp.ko

Please post boot log with "debug ignore_loglevel"


> Now everything works ok and device driver need not to be changed.
> As you said is a normal PCI Device Driver.
>
> Now I want that that when ATCA card is without energy ( 11:00.0 DPIO
> module: PLD APPLICATIONS Device 6014 (rev ff) )
>
> the command:
> echo 0 > /sys/bus/pci/slots/0000*/power is automatically executed.
>
> At the moment i'm doing it manually and after that my atca card driver
> is removed.
>
> And when i give energy to the ATCA card i have to manually perform pci
> bus re-enumeration
> with command:
> echo 1 > /sys/bus/pci/rescan
>
> and the ATCA card driver is automatically inserted. How can
> re-enumeration be done automatically?

If you can enable pciehp.ko for 04:08.0, then you can use
echo 0 > /sys/bus/pci/slots/48/power
echo 1 > /sys/bus/pci/slots/48/power

that should probe devices and load driver automatically.

Yinghai
--
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