]> git.baikalelectronics.ru Git - kernel.git/commit
hostap: use generic power management
authorVaibhav Gupta <vaibhavgupta40@gmail.com>
Tue, 21 Jul 2020 15:05:48 +0000 (20:35 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Sun, 2 Aug 2020 15:18:15 +0000 (18:18 +0300)
commit545fe6f649bebc94f35169fe0fccedb68d94812c
treeab24b27202e637eec5d380597a3e79a8f449a805
parent5f2adbd42363b0203a8e824ffd131f27629211e9
hostap: 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/20200721150547.371763-1-vaibhavgupta40@gmail.com
drivers/net/wireless/intersil/hostap/hostap_hw.c
drivers/net/wireless/intersil/hostap/hostap_pci.c