diff options
author | stephen hemminger <shemminger@vyatta.com> | 2010-02-12 01:58:00 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-12 19:21:01 -0500 |
commit | 87b09f1f25cd1e01d7c50bf423c7fe33027d7511 (patch) | |
tree | 774c12c71bd19de0a9850c1fe3a377634442adb3 /drivers/net/sky2.c | |
parent | 5f8ae5c537d937bab9cfeb83a30a9b670c3cfb35 (diff) |
sky2: dont enable PME legacy mode
This bit is not changed by vendor driver, and should be left alone.
The documentation implies this a debug bit.
0 = WAKE# only asserted when VMAIN not available
1 = WAKE# is depend on wake events and independent of VMAIN.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sky2.c')
-rw-r--r-- | drivers/net/sky2.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c index edf37aaf67f8..249484220a5f 100644 --- a/drivers/net/sky2.c +++ b/drivers/net/sky2.c | |||
@@ -733,7 +733,6 @@ static void sky2_wol_init(struct sky2_port *sky2) | |||
733 | unsigned port = sky2->port; | 733 | unsigned port = sky2->port; |
734 | enum flow_control save_mode; | 734 | enum flow_control save_mode; |
735 | u16 ctrl; | 735 | u16 ctrl; |
736 | u32 reg1; | ||
737 | 736 | ||
738 | /* Bring hardware out of reset */ | 737 | /* Bring hardware out of reset */ |
739 | sky2_write16(hw, B0_CTST, CS_RST_CLR); | 738 | sky2_write16(hw, B0_CTST, CS_RST_CLR); |
@@ -787,11 +786,6 @@ static void sky2_wol_init(struct sky2_port *sky2) | |||
787 | /* Disable PiG firmware */ | 786 | /* Disable PiG firmware */ |
788 | sky2_write16(hw, B0_CTST, Y2_HW_WOL_OFF); | 787 | sky2_write16(hw, B0_CTST, Y2_HW_WOL_OFF); |
789 | 788 | ||
790 | /* Turn on legacy PCI-Express PME mode */ | ||
791 | reg1 = sky2_pci_read32(hw, PCI_DEV_REG1); | ||
792 | reg1 |= PCI_Y2_PME_LEGACY; | ||
793 | sky2_pci_write32(hw, PCI_DEV_REG1, reg1); | ||
794 | |||
795 | /* block receiver */ | 789 | /* block receiver */ |
796 | sky2_write8(hw, SK_REG(port, RX_GMF_CTRL_T), GMF_RST_SET); | 790 | sky2_write8(hw, SK_REG(port, RX_GMF_CTRL_T), GMF_RST_SET); |
797 | } | 791 | } |