]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd10af93e924b8ceef2eda095ce798349135bc314
tree1a537a6462bdd881add57060cb8152ce275d3e3a
parent471d034424320d04c1aa399cf34a6d886a41baa6
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 4763f7dfc73e ("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: 4763f7dfc73e ("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