Skip to content

Commit c23ddf8

Browse files
Stephen Hemmingerdavem330
authored andcommitted
sky2: only enable Vaux if capable of wakeup
While perusing vendor driver, I saw that it did not enable the Vaux power unless device was able to wake from lan for D3cold. This might help for Rene's power issue. Signed-off-by: Stephen Hemminger <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent cf503e8 commit c23ddf8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/net/sky2.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,9 @@ static void sky2_power_aux(struct sky2_hw *hw)
272272
Y2_CLK_GAT_LNK1_DIS | Y2_PCI_CLK_LNK2_DIS |
273273
Y2_COR_CLK_LNK2_DIS | Y2_CLK_GAT_LNK2_DIS);
274274

275-
/* switch power to VAUX */
276-
if (sky2_read32(hw, B0_CTST) & Y2_VAUX_AVAIL)
275+
/* switch power to VAUX if supported and PME from D3cold */
276+
if ( (sky2_read32(hw, B0_CTST) & Y2_VAUX_AVAIL) &&
277+
pci_pme_capable(hw->pdev, PCI_D3cold))
277278
sky2_write8(hw, B0_POWER_CTRL,
278279
(PC_VAUX_ENA | PC_VCC_ENA |
279280
PC_VAUX_ON | PC_VCC_OFF));

0 commit comments

Comments
 (0)