net: dsa: mv88e6xxx: Add number of internal PHYs
authorAndrew Lunn <andrew@lunn.ch>
Sat, 17 Mar 2018 19:32:04 +0000 (20:32 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Mar 2018 20:52:58 +0000 (16:52 -0400)
commitbc3931557d1d55584100b1ffefc248137b5cb7e1
treebc99d461712691052bda8fba067e9626df6d2947
parentadfccf118211520ebe22f9f46e73834211ea492d
net: dsa: mv88e6xxx: Add number of internal PHYs

Add to the info structure the number of internal PHYs, if they generate
interrupts. Some of the older generations of switches have internal
PHYs, but no interrupt registers. In this case, set the count to zero.

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