PCIe recovery mechanism

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

 



Hello,

I was wondering if there is any way to recover from FW crash in case
of WLAN PCie cards- say we power off card and power on. This would
enable hotplug to detect it again and driver's probe routine would do
redownload of FW and device is alive again.

1. I went through PCI bus driver sources and came across
pci_set_power_state which can be used to set PCI power state to
D0-D3hot/D3cold. Suppose we set power state to D3Cold, I dont think
dev pointer would be valid again to set to D0.

2. Another idea is something similar to PCI rescan operation via
sysfs(echo 1 > /sys/bus/pci/rescan). I am not entirely sure though if
this can be applied to single device as this involves scanning all
devices on PCI bus.

Any help appreciated!

Thanks,
Avinash

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux