Skip to content

Commit

Permalink
sky2: dont overwrite settings for PHY Quick link
Browse files Browse the repository at this point in the history
This patch corrects a bug in function sky2_open() of the Marvell Yukon 2 driver
in which the settings for PHY quick link are overwritten.

Signed-off-by: Lino Sanfilippo <[email protected]>
Acked-by: Stephen Hemminger <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
LinoSanfilippo333 authored and davem330 committed Apr 2, 2012
1 parent 085f1af commit 2240eb4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/net/ethernet/marvell/sky2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1767,13 +1767,14 @@ static int sky2_open(struct net_device *dev)

sky2_hw_up(sky2);

/* Enable interrupts from phy/mac for port */
imask = sky2_read32(hw, B0_IMSK);

if (hw->chip_id == CHIP_ID_YUKON_OPT ||
hw->chip_id == CHIP_ID_YUKON_PRM ||
hw->chip_id == CHIP_ID_YUKON_OP_2)
imask |= Y2_IS_PHY_QLNK; /* enable PHY Quick Link */

/* Enable interrupts from phy/mac for port */
imask = sky2_read32(hw, B0_IMSK);
imask |= portirq_msk[port];
sky2_write32(hw, B0_IMSK, imask);
sky2_read32(hw, B0_IMSK);
Expand Down

0 comments on commit 2240eb4

Please sign in to comment.