Skip to content

Commit

Permalink
atl1c: remove MDIO_REG_ADDR_MASK in atl1c_mdio_read/write
Browse files Browse the repository at this point in the history
MDIO_REG_ADDR_MASK is already applied in function
atl1c_write_phy_reg and atl1c_read_phy_reg

Signed-off-by: xiong <xiong@qca.qualcomm.com>
Tested-by: Liu David <dwliu@qca.qualcomm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
xhuang authored and davem330 committed Apr 20, 2012
1 parent d163ff7 commit 2528a5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/atheros/atl1c/atl1c_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ static int atl1c_mdio_read(struct net_device *netdev, int phy_id, int reg_num)
struct atl1c_adapter *adapter = netdev_priv(netdev);
u16 result;

atl1c_read_phy_reg(&adapter->hw, reg_num & MDIO_REG_ADDR_MASK, &result);
atl1c_read_phy_reg(&adapter->hw, reg_num, &result);
return result;
}

Expand All @@ -584,7 +584,7 @@ static void atl1c_mdio_write(struct net_device *netdev, int phy_id,
{
struct atl1c_adapter *adapter = netdev_priv(netdev);

atl1c_write_phy_reg(&adapter->hw, reg_num & MDIO_REG_ADDR_MASK, val);
atl1c_write_phy_reg(&adapter->hw, reg_num, val);
}

/*
Expand Down

0 comments on commit 2528a5d

Please sign in to comment.