]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: Add MDIO interrupts for internal PHYs
authorAndrew Lunn <andrew@lunn.ch>
Sat, 17 Mar 2018 19:32:05 +0000 (20:32 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Mar 2018 20:52:59 +0000 (16:52 -0400)
commit4763f7dfc73eb722e2ff95328f3cf3e39e2d76b6
treed0669876ce2f0829c5f48dca950625ffe3d90fd3
parentaa92ad7aa9ac3b8f4b499bd4f15f1235984d9f9e
net: dsa: mv88e6xxx: Add MDIO interrupts for internal PHYs

When registering an MDIO bus, it is possible to pass an array of
interrupts, one per address on the bus. phylib will then associate the
interrupt to the PHY device, if no other interrupt is provided.

Some of the global2 interrupts are PHY interrupts. Place them into the
MDIO bus structure.

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/global2.c
drivers/net/dsa/mv88e6xxx/global2.h