On Saturday, 2 of August 2008, Bartlomiej Zolnierkiewicz wrote:
Well, first, the work on improving the PCI PM support by IDE drivers is much
appreciated.
Still, since you're adding new routines etc., it may be a good time to
implement them using the new PM framework, as defined in
include/linux/pm.h (please also have a look at drivers/pci/pci-driver.c for the
PCI bus type's PM callbacks implementation details). Unfortunately, it's not
been well documented yet, so if you have any questions, please ask.
In fact, we need some example implementations of the new PM callbacks and
since you know the drivers in question very well, we could use your
implementations as examples, if you don't mind. [Certainly, they would be
better than PM callbacks written by me for any driver. ;-) ]
[--snip--]
pci_choose_state() is now considered as obsolete. You can use
pci_target_state() or even pci_prepare_to_sleep() here.
If you decide to use pci_prepare_to_sleep() above, please use
pci_back_from_sleep() here.
Thanks,
Rafael
--