]> git.baikalelectronics.ru Git - kernel.git/commit
prism54: islpci_hotplug: use generic power management
authorVaibhav Gupta <vaibhavgupta40@gmail.com>
Tue, 21 Jul 2020 12:55:15 +0000 (18:25 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Sun, 2 Aug 2020 14:58:56 +0000 (17:58 +0300)
commitf0423fbfc1dddd75cb1b7a3d773ce8424183318b
tree60e02221d03ffc91e03a175b2339cfb0a2dd3bb9
parent460d3977e79af200d28e763f967a4cd3205c1c0b
prism54: islpci_hotplug: use generic power management

Drivers using legacy power management .suspen()/.resume() callbacks
have to manage PCI states and device's PM states themselves. They also
need to take care of standard configuration registers.

Switch to generic power management framework using a single
"struct dev_pm_ops" variable to take the unnecessary load from the driver.
This also avoids the need for the driver to directly call most of the PCI
helper functions and device power state control functions as through
the generic framework, PCI Core takes care of the necessary operations,
and drivers are required to do only device-specific jobs.

Signed-off-by: Vaibhav Gupta <vaibhavgupta40@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200721125514.145607-1-vaibhavgupta40@gmail.com
drivers/net/wireless/intersil/prism54/islpci_hotplug.c