Skip to content

Commit ec8378b

Browse files
lunndavem330
authored andcommitted
net: dsa: mv88e6xxx: 6161 uses global 2 for PHY access
Access to the internal PHYs of the 6161 and 6123 go through global 2 SMI registers. Fix the ops structure. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 4e86d3c commit ec8378b

File tree

1 file changed

+4
-4
lines changed
  • drivers/net/dsa/mv88e6xxx

1 file changed

+4
-4
lines changed

drivers/net/dsa/mv88e6xxx/chip.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2455,8 +2455,8 @@ static const struct mv88e6xxx_ops mv88e6097_ops = {
24552455
static const struct mv88e6xxx_ops mv88e6123_ops = {
24562456
/* MV88E6XXX_FAMILY_6165 */
24572457
.set_switch_mac = mv88e6xxx_g2_set_switch_mac,
2458-
.phy_read = mv88e6165_phy_read,
2459-
.phy_write = mv88e6165_phy_write,
2458+
.phy_read = mv88e6xxx_g2_smi_phy_read,
2459+
.phy_write = mv88e6xxx_g2_smi_phy_write,
24602460
.port_set_link = mv88e6xxx_port_set_link,
24612461
.port_set_duplex = mv88e6xxx_port_set_duplex,
24622462
.port_set_speed = mv88e6185_port_set_speed,
@@ -2544,8 +2544,8 @@ static const struct mv88e6xxx_ops mv88e6141_ops = {
25442544
static const struct mv88e6xxx_ops mv88e6161_ops = {
25452545
/* MV88E6XXX_FAMILY_6165 */
25462546
.set_switch_mac = mv88e6xxx_g2_set_switch_mac,
2547-
.phy_read = mv88e6165_phy_read,
2548-
.phy_write = mv88e6165_phy_write,
2547+
.phy_read = mv88e6xxx_g2_smi_phy_read,
2548+
.phy_write = mv88e6xxx_g2_smi_phy_write,
25492549
.port_set_link = mv88e6xxx_port_set_link,
25502550
.port_set_duplex = mv88e6xxx_port_set_duplex,
25512551
.port_set_speed = mv88e6185_port_set_speed,

0 commit comments

Comments
 (0)