diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/altera/altera_tse_main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ethernet/altera/altera_tse_main.c b/drivers/net/ethernet/altera/altera_tse_main.c index 760c72c6e2ac..4773d98927cf 100644 --- a/drivers/net/ethernet/altera/altera_tse_main.c +++ b/drivers/net/ethernet/altera/altera_tse_main.c | |||
@@ -105,11 +105,11 @@ static int altera_tse_mdio_read(struct mii_bus *bus, int mii_id, int regnum) | |||
105 | 105 | ||
106 | /* set MDIO address */ | 106 | /* set MDIO address */ |
107 | csrwr32((mii_id & 0x1f), priv->mac_dev, | 107 | csrwr32((mii_id & 0x1f), priv->mac_dev, |
108 | tse_csroffs(mdio_phy0_addr)); | 108 | tse_csroffs(mdio_phy1_addr)); |
109 | 109 | ||
110 | /* get the data */ | 110 | /* get the data */ |
111 | return csrrd32(priv->mac_dev, | 111 | return csrrd32(priv->mac_dev, |
112 | tse_csroffs(mdio_phy0) + regnum * 4) & 0xffff; | 112 | tse_csroffs(mdio_phy1) + regnum * 4) & 0xffff; |
113 | } | 113 | } |
114 | 114 | ||
115 | static int altera_tse_mdio_write(struct mii_bus *bus, int mii_id, int regnum, | 115 | static int altera_tse_mdio_write(struct mii_bus *bus, int mii_id, int regnum, |
@@ -120,10 +120,10 @@ static int altera_tse_mdio_write(struct mii_bus *bus, int mii_id, int regnum, | |||
120 | 120 | ||
121 | /* set MDIO address */ | 121 | /* set MDIO address */ |
122 | csrwr32((mii_id & 0x1f), priv->mac_dev, | 122 | csrwr32((mii_id & 0x1f), priv->mac_dev, |
123 | tse_csroffs(mdio_phy0_addr)); | 123 | tse_csroffs(mdio_phy1_addr)); |
124 | 124 | ||
125 | /* write the data */ | 125 | /* write the data */ |
126 | csrwr32(value, priv->mac_dev, tse_csroffs(mdio_phy0) + regnum * 4); | 126 | csrwr32(value, priv->mac_dev, tse_csroffs(mdio_phy1) + regnum * 4); |
127 | return 0; | 127 | return 0; |
128 | } | 128 | } |
129 | 129 | ||