Commit 892bb07
firewire: ohci: use generic power management
Drivers using legacy PM have to manage PCI states and device's PM states
themselves. They also need to take care of configuration registers.
With improved and powerful support of generic PM, PCI Core takes care of
above mentioned, device-independent, jobs.
This driver makes use of PCI helper functions like
pci_save/restore_state(), pci_disable_device() and pci_set_power_state() to
do required operations. In generic mode, they are no longer needed.
Change function parameter in both .suspend() and .resume() to
"struct device*" type. Use to_pci_dev() to get "struct pci_dev*" variable.
Compile-tested only.
Maintainer has tested the changes on non-PowerPC platform and got no
failure of the suspend/resume operations.
Signed-off-by: Vaibhav Gupta <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Tested-by: Takashi Sakamoto <[email protected]>
Signed-off-by; Takashi Sakamoto <[email protected]<1 parent 40384c8 commit 892bb07
1 file changed
+13
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3301 | 3301 | | |
3302 | 3302 | | |
3303 | 3303 | | |
3304 | | - | |
3305 | | - | |
| 3304 | + | |
3306 | 3305 | | |
3307 | 3306 | | |
3308 | 3307 | | |
| |||
3319 | 3318 | | |
3320 | 3319 | | |
3321 | 3320 | | |
3322 | | - | |
3323 | 3321 | | |
3324 | 3322 | | |
3325 | 3323 | | |
| |||
3888 | 3886 | | |
3889 | 3887 | | |
3890 | 3888 | | |
3891 | | - | |
3892 | | - | |
| 3889 | + | |
3893 | 3890 | | |
3894 | | - | |
3895 | | - | |
| 3891 | + | |
| 3892 | + | |
3896 | 3893 | | |
3897 | 3894 | | |
3898 | | - | |
3899 | | - | |
3900 | | - | |
3901 | | - | |
3902 | | - | |
3903 | | - | |
3904 | | - | |
3905 | | - | |
3906 | | - | |
| 3895 | + | |
3907 | 3896 | | |
3908 | 3897 | | |
3909 | 3898 | | |
3910 | 3899 | | |
3911 | | - | |
| 3900 | + | |
| 3901 | + | |
3912 | 3902 | | |
3913 | | - | |
| 3903 | + | |
| 3904 | + | |
3914 | 3905 | | |
3915 | 3906 | | |
3916 | | - | |
3917 | | - | |
3918 | | - | |
3919 | | - | |
3920 | | - | |
3921 | | - | |
3922 | | - | |
3923 | | - | |
| 3907 | + | |
3924 | 3908 | | |
3925 | 3909 | | |
3926 | 3910 | | |
| |||
3937 | 3921 | | |
3938 | 3922 | | |
3939 | 3923 | | |
3940 | | - | |
3941 | 3924 | | |
3942 | 3925 | | |
3943 | 3926 | | |
| |||
3946 | 3929 | | |
3947 | 3930 | | |
3948 | 3931 | | |
| 3932 | + | |
| 3933 | + | |
3949 | 3934 | | |
3950 | 3935 | | |
3951 | 3936 | | |
3952 | 3937 | | |
3953 | 3938 | | |
3954 | | - | |
3955 | | - | |
3956 | | - | |
3957 | | - | |
| 3939 | + | |
3958 | 3940 | | |
3959 | 3941 | | |
3960 | 3942 | | |
| |||
0 commit comments