Skip to content

Commit

Permalink
atl1c: Disable L0S when no cable link
Browse files Browse the repository at this point in the history
L0S might be unstable if no cable link, only enable it when link up.

Signed-off-by: xiong <[email protected]>
Tested-by: Liu David <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
xhuang authored and davem330 committed May 1, 2012
1 parent 5e5c096 commit 4fc3635
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/atheros/atl1c/atl1c_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1326,7 +1326,7 @@ static void atl1c_set_aspm(struct atl1c_hw *hw, u16 link_speed)
}

/* L0S/L1 enable */
if (hw->ctrl_flags & ATL1C_ASPM_L0S_SUPPORT)
if ((hw->ctrl_flags & ATL1C_ASPM_L0S_SUPPORT) && link_speed != SPEED_0)
pm_ctrl_data |= PM_CTRL_ASPM_L0S_EN | PM_CTRL_MAC_ASPM_CHK;
if (hw->ctrl_flags & ATL1C_ASPM_L1_SUPPORT)
pm_ctrl_data |= PM_CTRL_ASPM_L1_EN | PM_CTRL_MAC_ASPM_CHK;
Expand Down

0 comments on commit 4fc3635

Please sign in to comment.