@@ -706,7 +706,7 @@ static int alx_init_sw(struct alx_priv *alx)
alx->rxbuf_size = ALIGN(ALX_RAW_MTU(hw->mtu), 8);
alx->tx_ringsz = 256;
alx->rx_ringsz = 512;
- hw->sleep_ctrl = ALX_SLEEP_WOL_MAGIC | ALX_SLEEP_WOL_PHY;
+ hw->sleep_ctrl = 0;
hw->imt = 200;
alx->int_mask = ALX_ISR_MISC;
hw->dma_chnl = hw->max_dma_chnl;
@@ -983,20 +983,20 @@ static int __alx_shutdown(struct pci_dev *pdev, bool *wol_en)
err = alx_select_powersaving_speed(hw, &speed, &duplex);
if (err)
return err;
- err = alx_clear_phy_intr(hw);
+ err = alx_config_wol(hw);
if (err)
return err;
err = alx_pre_suspend(hw, speed, duplex);
if (err)
return err;
- err = alx_config_wol(hw);
+ err = alx_clear_phy_intr(hw);
if (err)
return err;
*wol_en = false;
if (hw->sleep_ctrl & ALX_SLEEP_ACTIVE) {
netif_info(alx, wol, netdev,
- "wol: ctrl=%X, speed=%X\n",
+ "wol: ctrl=%X, speed=%d\n",
hw->sleep_ctrl, speed);
device_set_wakeup_enable(&pdev->dev, true);
*wol_en = true;