diff options
author | Andrew Lunn <andrew@lunn.ch> | 2018-05-05 20:58:22 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-05-08 05:41:58 +0200 |
commit | 9255bacd57a5a247be91ce2b81ff09e15a0b8822 (patch) | |
tree | 1a537a6462bdd881add57060cb8152ce275d3e3a /drivers/net/dsa/mv88e6xxx/global2.c | |
parent | tls: fix use after free in tls_sk_proto_close (diff) | |
download | linux-9255bacd57a5a247be91ce2b81ff09e15a0b8822.tar.xz linux-9255bacd57a5a247be91ce2b81ff09e15a0b8822.zip |
net: dsa: mv88e6xxx: Fix PHY interrupts by parameterising PHY base address
Most of the mv88e6xxx switches have the PHYs at address 0, 1, 2, ...
The 6341 however has the PHYs at 0x10, 0x11, 0x12. Add a parameter to
the info structure for this base address.
Testing of 6f88284f3bd7 ("net: dsa: mv88e6xxx: Add MDIO interrupts for
internal PHYs") was performed on the 6341. So it works only on the
6341. Use this base information to correctly set the interrupt.
Fixes: 6f88284f3bd7 ("net: dsa: mv88e6xxx: Add MDIO interrupts for internal PHYs")
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/dsa/mv88e6xxx/global2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dsa/mv88e6xxx/global2.c b/drivers/net/dsa/mv88e6xxx/global2.c index 0ce627fded48..8d22d66d84b7 100644 --- a/drivers/net/dsa/mv88e6xxx/global2.c +++ b/drivers/net/dsa/mv88e6xxx/global2.c @@ -1118,7 +1118,7 @@ int mv88e6xxx_g2_irq_mdio_setup(struct mv88e6xxx_chip *chip, err = irq; goto out; } - bus->irq[chip->info->port_base_addr + phy] = irq; + bus->irq[chip->info->phy_base_addr + phy] = irq; } return 0; out: |