Re: pci_suspend/pci_resume of custom pcie board

2011-01-27 Thread Philip Soeberg
On 25-01-2011 19:55, John Baldwin wrote: Use this: pci_cfg_save(dev, dinfo, 0); pci_set_powerstate(dev, PCI_POWERSTATE_D3); /* do stuff */ /* Will set state to D0. */ pci_cfg_restore(dev, dinfo); We probably should create some wrapper routines (pci_save

Re: pci_suspend/pci_resume of custom pcie board

2011-01-25 Thread John Baldwin
On Tuesday, January 25, 2011 9:47:35 am Philip Soeberg wrote: > Hi, > > I'm in a particular problem where I need to set my custom pcie adapter > into d3hot power-mode and a couple of seconds later reset it back to d0. > The board has an FPGA directly attached to the pcie interface, and as I > ne

pci_suspend/pci_resume of custom pcie board

2011-01-25 Thread Philip Soeberg
Hi, I'm in a particular problem where I need to set my custom pcie adapter into d3hot power-mode and a couple of seconds later reset it back to d0. The board has an FPGA directly attached to the pcie interface, and as I need to re-configure the FPGA on the fly, I have to ensure the datalink la