# Re: \[PATCH v1\] rtl818x\_pci: use generic power management

- From: Kalle Valo \<hidden\>
- Date: 2020-07-15 10:38:50 
- List: netdev
- Page: https://ratatoskr.run/netdev/2020/07/6037028
- Thread: https://ratatoskr.run/netdev/2020/06/6010679/t.md

```text
Vaibhav Gupta [ref] wrote:

> Earlier, drivers had to manage the device's power states, and related
> operations, themselves. With the generic approach, these are done by PCI
> core.
> 
> The only driver-specific jobs, .suspend() and .resume() doing were invoking
> PCI helper functions pci_save/restore_state() and
> pci_set_power_state(). This is not recommeneded as PCI core takes care of
> that. Hence they became empty-body functions, thus define them NULL.
> 
> Compile-tested only.
> 
> Signed-off-by: Vaibhav Gupta <vaibhavgupta40@gmail.com>

Patch applied to wireless-drivers-next.git, thanks.

ef6425107ccc rtl818x_pci: use generic power management

-- 
https://patchwork.kernel.org/patch/11620213/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

```
