net: dsa: mv88e6xxx: Fix PHY interrupts by parameterising PHY base address
authorAndrew Lunn <andrew@lunn.ch>
Sat, 5 May 2018 18:58:22 +0000 (20:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 May 2018 03:41:58 +0000 (23:41 -0400)
commit9255bacd57a5a247be91ce2b81ff09e15a0b8822
tree1a537a6462bdd881add57060cb8152ce275d3e3a
parent98f0a39529e553bb45c0a7d775d2cc2afe9ed91d
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>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/chip.h
drivers/net/dsa/mv88e6xxx/global2.c