Re: [PATCH v4 1/5] net: rnpgbe: Add build support for rnpgbe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> +static void rnpgbe_shutdown(struct pci_dev *pdev)
> +{
> +	bool wake;
> +
> +	rnpgbe_dev_shutdown(pdev, &wake);
> +
> +	if (system_state == SYSTEM_POWER_OFF) {
> +		pci_wake_from_d3(pdev, wake);
> +		pci_set_power_state(pdev, PCI_D3hot);
> +	}

I don't think you need this test of system state until you have added
WoL support.

    Andrew

---
pw-bot: cr




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux